code: private String getApiId(Contract contract) {
          return getApiId(contract.getApiOrgId(), contract.getApiId(), contract.getApiVersion());
      }
docs: Generates a valid document ID for a api referenced by a contract, used to
  retrieve the api from ES.
  @param contract