code: public static AuditEntryBean contractBrokenFromClient(ContractBean bean, ISecurityContext securityContext) {
          AuditEntryBean entry = newEntry(bean.getClient().getClient().getOrganization().getId(), AuditEntityType.Client, securityContext);
          entry.setWhat(AuditEntryType.BreakContract);
          entry.setEntityId(bean.getClient().getClient().getId());
          entry.setEntityVersion(bean.getClient().getVersion());
          ContractData data = new ContractData(bean);
          entry.setData(toJSON(data));
          return entry;
      }
docs: Creates an audit entry for the 'contract broken' event.
  @param bean the bean
  @param securityContext the security context
  @return the audit entry