public ims.RefMan.vo.ContractConfigVo save(ims.RefMan.vo.ContractConfigVo contract)
     throws ims.domain.exceptions.DomainInterfaceException,
         ims.domain.exceptions.StaleObjectException {
   if (!contract.isValidated()) {
     throw new DomainRuntimeException("Trying to save a record that hasn't been validated");
   }
   DomainFactory df = getDomainFactory();
   ContractConfig dObj = ContractConfigVoAssembler.extractContractConfig(df, contract);
   df.save(dObj);
   return ContractConfigVoAssembler.create(dObj);
 }
 public ims.RefMan.vo.ContractConfigVo getContract(
     ims.core.configuration.vo.ContractConfigRefVo contractRef) {
   if (!contractRef.getID_ContractConfigIsNotNull()) {
     throw new DomainRuntimeException("Invalid contract ref provided");
   }
   return ContractConfigVoAssembler.create(
       (ContractConfig)
           getDomainFactory()
               .getDomainObject(ContractConfig.class, contractRef.getID_ContractConfig()));
 }