public Map<Object, LimitProfile> getProfiles() {
List<CategoryProfile> profiles = entityDao.getAll(CategoryProfile.class);
Map<Object, LimitProfile> profileMap = CollectUtils.newHashMap();
for (CategoryProfile profile : profiles) {
UserCategory category = entityDao
.get(UserCategory.class, profile.getCategory().getId());
profileMap.put(category, new LimitProfile(category, profile.getCapacity(),
profile.getInactiveInterval(), profile.getInactiveInterval()));
}
return profileMap;