diff --git a/components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/aspects/utils/Utils.java b/components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/aspects/utils/Utils.java index 92728da11..fc960bc28 100755 --- a/components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/aspects/utils/Utils.java +++ b/components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/aspects/utils/Utils.java @@ -66,8 +66,7 @@ public static Execution loadCustomExecutors(String className, Map parameterMap) Execution customExecutors; try { - ClassLoader loader = Thread.currentThread().getContextClassLoader(); - Class customCodeClass = Class.forName(className, true, loader); + Class customCodeClass = Utils.class.getClassLoader().loadClass(className); customExecutors = (Execution) customCodeClass.newInstance(); customExecutors.init(parameterMap);