code: public DocumentClient createDocumentClient(final BaseCosmosDbProperties properties) {
          val policy = ConnectionPolicy.GetDefault();
          var userAgent = (policy.getUserAgentSuffix() == null
              ? StringUtils.EMPTY
              : ';' + policy.getUserAgentSuffix()) + ';' + USER_AGENT_SUFFIX;
          if (properties.isAllowTelemetry() && GetHashMac.getHashMac() != null) {
              userAgent += ';' + GetHashMac.getHashMac();
          }
          policy.setUserAgentSuffix(userAgent);
          return new DocumentClient(properties.getUri(), properties.getKey(), policy,
              ConsistencyLevel.valueOf(properties.getConsistencyLevel()));
      }
docs: Create document client.
  
  @param properties the properties
  @return the document client