List<String> identsDeleted = new ArrayList<String>();
for (Contentlet con : contentlets) {
cc.remove(con.getInode());
// delete workflow task for contentlet
WorkFlowFactory wff = FactoryLocator.getWorkFlowFactory();
WorkflowTask wft = wff.findTaskByContentlet(con);
if ( InodeUtils.isSet(wft.getInode() ) ) {
wff.deleteWorkflowTask(wft);
}
if(InodeUtils.isSet(con.getInode())){
APILocator.getPermissionAPI().removePermissions(con);