@SuppressWarnings("unchecked")
public PagedSearchResult pagedCercaContoMastroByCriteria(List<SearchCriteriaLogicProduct> andCriteriaList,
int startingIndex, int pageSize) throws ImpossibileCercareContoException {
DetachedCriteria criteria = SearchUtils.getDetachedCriteriaWithIgnoreCase(andCriteriaList,
"contoId.legalEntity", legalEntity, "contoId.organizationUnit", organizationUnit, Conto.class);
criteria.createAlias("mastro", "mastro");
try {
List<Object> result = getHibernateTemplate().findByCriteria(criteria, startingIndex, pageSize + 1);
return PagedSearchResult.makePagedSearchResult(result, pageSize);
} catch (DataAccessException e) {
log("Impossibile Cercare Conto Mastro:" + e);