public void remove(String entityName, EntityCondition condition) {
UtilCache entityCache = getCache(entityName);
if (entityCache == null) return;
Iterator it = entityCache.getCacheLineValues().iterator();
while (it.hasNext()) {
CacheLine line = (CacheLine) it.next();
if (entityCache.hasExpired(line)) continue;
GenericEntity entity = (GenericEntity) line.getValue();
if (entity == null) continue;
if (condition.entityMatches(entity)) it.remove();
}
}