// call Work configurqations's configure method
try{
WorkConfiguration workConfiguration=new WorkConfiguration(worksRepository);
if(workConfiguration != null) {
workConfiguration.configure(session,work,parameters,documentUnique, isLabel);
}
}
catch (Exception e) {
logger.error("Error in configuring work",e);