BUG-576: modified parser to handle refinement of extension instances.