return findDatedInclusionEntity(delegator, entityName, search, UtilDateTime.nowTimestamp());
}
public static List findDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now) throws GenericEntityException {
EntityCondition searchCondition = new EntityConditionList(UtilMisc.toList(
new EntityFieldMap(search, EntityOperator.AND),
EntityUtil.getFilterByDateExpr(now)
), EntityOperator.AND);
return delegator.findByCondition(entityName,searchCondition,null,UtilMisc.toList("-fromDate"));
}