private void makeInstanceOf_Type(LoadedJCasType jcasTypeInfo, boolean alreadyLoaded, FSGenerator[] fsGenerators) {
Constructor c_Type = jcasTypeInfo.constructorFor_Type;
Constructor cType = jcasTypeInfo.constructorForType;
int typeIndex = jcasTypeInfo.index;
TypeImpl casType = (TypeImpl)casImpl.getTypeSystem().getType(jcasTypeInfo.typeName);
try {
constructorArgsFor_Type[0] = this;
constructorArgsFor_Type[1] = casType;
TOP_Type x_Type_instance = (TOP_Type) c_Type.newInstance(constructorArgsFor_Type);
typeArray[typeIndex] = x_Type_instance;
// install the standard generator
// this is sharable by all views, since the CAS is passed to the generator
// Also sharable by all in a CasPool, except for "swapping" due to PEARs/Classloaders.
if (! alreadyLoaded) {
final TypeSystemImpl ts = casImpl.getTypeSystemImpl();
fsGenerators[casType.getCode()] = new JCasFsGenerator(typeIndex, cType, jcasTypeInfo.isSubtypeOfAnnotationBase,
ts.sofaNumFeatCode, ts.annotSofaFeatCode);
// this.casImpl.getFSClassRegistry().loadJCasGeneratorForType(typeIndex, cType, casType, jcasTypeInfo.isSubtypeOfAnnotationBase);
}
} catch (SecurityException e) {
logAndThrow(e);