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
}
CvFileFacade cvf = new CvFileFacade();
// while updating for attached file ids, only commiting them as
// isTemporary=NO is to be done.