try {
rtypeField.setAccessible(true);
rtype = (ReloadableType) rtypeField.get(null);
if (rtype == null) {
classToRType.put(clazz, ReloadableType.NOT_RELOADABLE_TYPE_REF);
throw new ReloadException("ReloadableType field '" + Constants.fReloadableTypeFieldName
+ "' is 'null' on type " + clazz.getName());
} else {
classToRType.put(clazz, new WeakReference<ReloadableType>(rtype));
}
} catch (Exception e) {
throw new ReloadException("Unable to access ReloadableType field '" + Constants.fReloadableTypeFieldName
+ "' on type " + clazz.getName(), e);
}
}
} else if (rtype == ReloadableType.NOT_RELOADABLE_TYPE) {
return null;