if( xml instanceof SimpleTypeConfig )
return new SimpleType( ( SimpleTypeConfig )xml, schema );
if( xml instanceof EmptyTypeConfig )
return new EmptyType( ( EmptyTypeConfig )xml, schema );
if( xml instanceof CustomTypeConfig )
return new CustomType( ( CustomTypeConfig )xml, schema );
return null;
}