return null;
}
String resourceName = resourceKey.getResourceName();
Resource resource = null;
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
if (contextClassLoader != null) {
try {
Class<?> loadedClass = Class.forName(resourceName, false, contextClassLoader);
resource = createDynamicUserResourceInstance(loadedClass);
if (resource == null) {
resource = createDynamicResourceInstance(loadedClass);
}
if (resource != null) {
resource.setResourceName(resourceName);
if (parameters != null) {
if (resource instanceof BaseResourceWrapper<?>) {
BaseResourceWrapper<?> baseResourceWrapper = (BaseResourceWrapper<?>) resource;