public DiagramInfo getDiagramInfo(String processId) {
if (kbase == null) {
try {
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("Guvnor default");
kagent.applyChangeSet(ResourceFactory.newClassPathResource("ChangeSet.xml"));
kagent.monitorResourceChangeEvents(false);
kbase = kagent.getKnowledgeBase();
} catch (Throwable t) {
if (t instanceof RuntimeException
&& "KnowledgeAgent exception while trying to deserialize".equals(t.getMessage())) {
System.out.println("Could not connect to guvnor");