if ((oldIncludeFlag != newIncludeFlag) || newIncludeFlag) {
// get EJB to Opportunity
int opportunityID = Integer.parseInt(proposalForm.getOpportunityid());
InitialContext ic = CVUtility.getInitialContext();
OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
OpportunityLocal local = home.create();
local.setDataSource(this.dataSource);
float opportunityTotal = local.updateTotalAmount(opportunityID);
local.updateForcastAmount(opportunityTotal, opportunityID);
// do the update
}