GroovyClassLoader gCL = new GroovyClassLoader(getClass().getClassLoader());
Class gClass = gCL.parseClass(file);
GroovyObject gO = (GroovyObject)gClass.newInstance();
String methodName = null;
for(Object o : gO.getMetaClass().getMethods()) {
MetaMethod m = (MetaMethod)o;
if(m.getName().startsWith("getPlatformCapabilityConfig")) {
methodName = m.getName();
break;
}
}
if(methodName==null) {
logger.warn("The {} class does not contain a getPlatformCapabilityConfig() " +