loader = getPersistenceUnit().getEnhancedLoader();
_instanceClass = Class.forName(getInstanceClassName(), false, loader);
}
} catch (ClassNotFoundException e) {
throw new AmberRuntimeException(e);
}
if (! validationInterface.isAssignableFrom(_instanceClass)) {
if (getConfigException() != null)
throw new AmberRuntimeException(getConfigException());
else if (_amberPersistenceUnit.getConfigException() != null)
throw new AmberRuntimeException(_amberPersistenceUnit.getConfigException());
throw new AmberRuntimeException(L.l("'{0}' with classloader {1} is an illegal instance class. The class has not been enhanced as implementing {2}.",
_instanceClass.getName(), _instanceClass.getClassLoader(),
validationInterface));
}
}