public List getAssignments(AssignmentFilterCriteria filter) throws AppException { String METHOD_NAME = "getAssignedLegalEntities(AssignmentFilterCriteria)"; log.debug(METHOD_NAME + "enter"); ArrayList list = null; Connection con = null; try { con = repository.getConnection(); list = getAssignments(filter, con); } catch (Exception e) { throw new AppException(new AppErrorMessage(com.tanval.tbbsr.util.MessageConstants.E0021E_CODE, "Error Occured while retrieving assignments " + e.getMessage()) ); } finally { repository.closeHandle(con); } log.debug(METHOD_NAME + "Exit"); return list; }