// start up workflow
WorkflowAPI wapi = APILocator.getWorkflowAPI();
WorkflowProcessor workflow=null;
if(contentlet.getMap().get("__disable_workflow__")==null) {
workflow = wapi.fireWorkflowPreCheckin(contentlet,user);
}
workingContentlet = contentlet;
if(createNewVersion)
workingContentlet = findWorkingContentlet(contentlet);