db.getAvailableEntriesSortedByFreeMemoryPercentage(mem, resourcePool);
if(availableEntries.isEmpty()){
String err = "No resource is available for this request (based on memory).";
logger.error(err);
throw new NotEnoughMemoryException(err);
}
netFilter(availableEntries, neededAssociations, trace);
if(availableEntries.isEmpty()){