JDOClass jdoClass = jdoField.getDeclaringClass();
JDOModel jdoModel = jdoClass.getDeclaringModel();
type = TypeSupport.resolveType(jdoModel, elementTypeName,
jdoClass.getPackagePrefix());
if (type == null) {
throw new ModelFatalException(
msg.msg("EXC_CannotResolveElementType", elementTypeName, //NOI18N
jdoField.getName(), jdoClass.getName())); //NOI18N
}
}