}
private void importFactory(ImportSDO importSDO, ModelResolver resolver) throws ContributionResolveException {
String factoryName = importSDO.getFactoryClassName();
if (factoryName != null) {
ClassReference reference = new ClassReference(factoryName);
ClassReference resolved = resolver.resolveModel(ClassReference.class, reference);
if (resolved == null || resolved.isUnresolved()) {
ContributionResolveException loaderException =
new ContributionResolveException("Fail to resolve class: " + factoryName);
throw loaderException;
}
try {
Class<?> factoryClass = resolved.getJavaClass();
register(factoryClass, importSDO.getHelperContext());
} catch (Exception e) {
throw new ContributionResolveException(e);
}
importSDO.setUnresolved(false);