public static Type parse( TypeConfig xml, Schema schema )
{
if( xml instanceof TypeReferenceConfig )
return new TypeReferenceType( ( TypeReferenceConfig )xml, schema );
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;