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();
}
protected MonthlyBudget obtainMonthlyBudget(UserDetails user, int month) {