budgetAmount.setMicroAmount(50000000L);
sharedBudget.setAmount(budgetAmount);
sharedBudget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
sharedBudget.setPeriod(BudgetBudgetPeriod.DAILY);
BudgetOperation budgetOperation = new BudgetOperation();
budgetOperation.setOperand(sharedBudget);
budgetOperation.setOperator(Operator.ADD);
// Add the budget and get the budget ID.
BudgetReturnValue budgetResult = budgetService.mutate(
new BudgetOperation[] {budgetOperation});
Long budgetId = budgetResult.getValue(0).getBudgetId();