hList = this.getAllServices(ActivitiPrintHandler.class, filter);
} catch (Exception e) {
e.printStackTrace();
}
if (hList == null || hList.size() == 0) {
DefaultActivitiPrintHandler defHandler = new DefaultActivitiPrintHandler();
defHandler.setProcessEngine(this.getProcessEngine());
handler = defHandler;
} else {
handler = hList.get(0); // first one that matches.
}
return handler;