// ProceduresMGMTService.getInstance().newRequestedProcedure(emergency.getId(), procedureName, parameters);
System.out.println("LET'S CREATE a new procedure name in a remote location = "+procedureName+" for emergency "+emergency);
try {
MessageFactory.sendMessage(new AsyncProcedureStartMessage(emergency.getId(), wi.getId(), procedureName, parameters));
} catch (HornetQException ex) {
Logger.getLogger(AsyncStartProcedureWorkItemHandler.class.getName()).log(Level.SEVERE, null, ex);
}
wim.completeWorkItem(wi.getId(), null);
}