DefinitionItem definition = (DefinitionItem)items.get(i);
if (!definition.isPregenerated()) {
// record all simple element definition items separately for next pass
AnnotatedBase child = definition.getSchemaComponent();
if (child.type() == SchemaBase.ELEMENT_TYPE && definition.getChildCount() == 1) {
Item item = definition.getFirstChild();
if (item instanceof ReferenceItem) {
DefinitionItem basedef = ((ReferenceItem)item).getDefinition();
if (!basedef.isPregenerated()) {
AnnotatedBase comp = basedef.getSchemaComponent();