}
}
} else if (simpleType.isList()) {
result = new ListTypeSGImpl(pFactory, pSchema, pType, classContext, pController.getName());
} else if (simpleType.isUnion()) {
result = new UnionTypeSGImpl(pFactory, pSchema, pType, classContext, pController.getName());
} else {
throw new IllegalStateException("Simple type " + pType + " is neither of atomic, list, or union");
}
} else {
result = newSimpleTypeSGByJavaType(javaType, pFactory, pSchema, pType);