private Throwable doTestResources(String xml) {
try {
ClassLoader loader = getClass().getClassLoader();
BPMComponentImplementationModel model = _puller.pull(xml, loader);
KnowledgeSessionFactory factory = KnowledgeSessionFactory.newSessionFactory(model, loader, null, null);
KnowledgeSession session = factory.newStatefulSession(null);
session.getStateful().startProcess("TestProcess");
return null;
} catch (Throwable t) {
return t;
}