//**************** START PRIORITY RECALCULATION *******************
//*****************************************************************
Integer priority = tmpBIObjectParameter.getPriority();
if (priority == null || priority.intValue() != count) {
logger.warn("The priorities of the biparameters for the document with id = " + biObject.getId() + " are not sorted. Priority recalculation starts.");
aBIObjectParameterDAOHibImpl.recalculateBiParametersPriority(biObject.getId(), aSession);
tmpBIObjectParameter.setPriority(new Integer(count));
}
count++;
//*****************************************************************
//**************** END PRIORITY RECALCULATION *******************