Class<? extends ModelResolver > resolver = resolvers.get(modelType);
if (resolver == null) {
ServiceDeclaration resolverClass = loadedResolvers.get(modelType.getName());
if (resolverClass != null) {
try {
return (Class<? extends ModelResolver>)resolverClass.loadClass();
} catch (ClassNotFoundException e) {
throw new IllegalArgumentException(e);
}
}
}