public override void OnValidateTransaction(IBusinessObject businessObject) { ItemMapper mapper = DependencyContainerManager.Container.Get <ItemMapper>(); bool b = mapper.CheckItemCodeExistence(businessObject.FullXml); if (b) { throw new ClientException(ClientExceptionId.ItemCodeAlreadyExists); } }