}
return manage(modelMap);
}
protected void createBudget(UserDetails user, String locale, int month, double amount, Subcategory category) {
CategoryBudget categoryBudget = new CategoryBudget();
categoryBudget.setCategory(category);
String[] locales = locale.split("_");
categoryBudget.setLocale(new Locale(locales[0], locales[1], ""));
categoryBudget.setExpectedAmount(new BigDecimal(amount));
MonthlyBudget monthlyBudget = obtainMonthlyBudget(user, month);
categoryBudget.setMonthlyBudget(monthlyBudget);
categoryBudget.persist();
monthlyBudget.getBudgets().add(categoryBudget);
monthlyBudget.merge();
}