if(o!=null){ // object found in session, work could be not started, running or completed
container=(CommonjWorkContainer)o;
FooRemoteWorkItem fooRwi=container.getFooRemoteWorkItem();
WorkItem wi=container.getWorkItem();
// if WorkItem is not set means work has never been started
if(fooRwi!=null && wi!=null){
statusWI=wi.getStatus();
// if finds that work is finished delete the attribute from session
if(statusWI==WorkEvent.WORK_COMPLETED){
logger.debug("Work is finished - remove from session");
//session.removeAttribute("SBI_PROCESS_"+document_id);
processesStatusContainer.getPidContainerMap().remove(pid);