public synchronized BusinessContextDefinition updateBusinessContextDefinition(BusinessContextDefinition businessContextDefinition) throws BusinessException, JAXBException, IOException {
  businessContextDefinition.setRevision(businessContextDefinition.getRevision() + 1);
  BusinessContextDefinition currentBusinessContextDefinition=businessContextDefinitionReference.get();
  if ((currentBusinessContextDefinition != businessContextDefinition) && ((currentBusinessContextDefinition.getRevision() + 1) != businessContextDefinition.getRevision())) {
    throw new BusinessException("Update of the business context.",ConfigurationInterfaceErrorCodeEnum.REVISION_CHECK_FAILED);
  }
  saveBusinessContext(businessContextDefinition);
  eventPublisher.publishEvent(new BusinessContextDefinitionUpdateEvent(this,businessContextDefinition));
  return businessContextDefinition;
}

public synchronized BusinessContextDefinition updateBusinessContextDefinition ( BusinessContextDefinition businessContextDefinition ) throws BusinessException , JAXBException , IOException { businessContextDefinition . setRevision ( businessContextDefinition . getRevision ( ) + 1 ) ; BusinessContextDefinition currentBusinessContextDefinition = businessContextDefinitionReference . get ( ) ; if ( ( currentBusinessContextDefinition != businessContextDefinition ) && ( ( currentBusinessContextDefinition . getRevision ( ) + 1 ) != businessContextDefinition . getRevision ( ) ) ) { throw new BusinessException ( "Update of the business context." , ConfigurationInterfaceErrorCodeEnum . REVISION_CHECK_FAILED ) ; } saveBusinessContext ( businessContextDefinition ) ; eventPublisher . publishEvent ( new BusinessContextDefinitionUpdateEvent ( this , businessContextDefinition ) ) ; return businessContextDefinition ; }
updates and stores new definition of the business context .
