// TODO request is not among the methods..
ClassLoader loader = store.loadPlugin("foo");
final Class c = Class.forName("honeycrm.server.test.small.dyn.A", true, loader);
final String returnValue = String.valueOf(c.getMethod("request").invoke(c.newInstance()));
return new PluginResponse(returnValue);
} catch (Exception e) {
e.printStackTrace();
return new PluginResponse("Exception during class loading " + e.getMessage());
}
} else {
// load class from datastore first.
return new PluginResponse("not implemented yet");
}
// }
}