if (DynamicClassLoader.class.isAssignableFrom(loader.getClass())) {
DynamicClassLoader dcl = (DynamicClassLoader) loader;
for (EntityAccessor accessor : getEntityAccessors()) {
String className = accessor.getParentClassName();
if (className == null || getEntityAccessor(className) == null) {
RestAdapterClassWriter restAdapter = new RestAdapterClassWriter(
accessor.getJavaClassName());
dcl.addClass(restAdapter.getClassName(), restAdapter);
}
}
}
}