// Get the container object from session: it MUST be present if start button is enabled
//Object o=session.getAttribute("SBI_PROCESS_"+document_id);
ProcessesStatusContainer processesStatusContainer = ProcessesStatusContainer.getInstance();
Object o=processesStatusContainer.getPidContainerMap().get(pId);
CommonjWorkContainer container=(CommonjWorkContainer)o;
WorkManager wm=container.getWm();
Work workToDo=container.getWork();
CommonjWorkListener listener=container.getListener();
FooRemoteWorkItem fooRemoteWorkItem=wm.buildFooRemoteWorkItem(workToDo, listener);
int statusWI;
// Check if work was accepted
if(fooRemoteWorkItem.getStatus()==WorkEvent.WORK_ACCEPTED){
container.setFooRemoteWorkItem(fooRemoteWorkItem);
// run work!
WorkItem workItem=(WorkItem)wm.runWithReturnWI(workToDo, listener);
container.setWorkItem(workItem);
statusWI=workItem.getStatus();
// put new Object in singleton!!!
processesStatusContainer.getPidContainerMap().put(pId, container);
//session.setAttribute("SBI_PROCESS_"+document_id, container);