code: private static RepositoryPolicy asRepositoryPolicy(org.apache.maven.settings.RepositoryPolicy policy) {
          boolean enabled = true;
          String checksums = RepositoryPolicy.CHECKSUM_POLICY_WARN;
          String updates = RepositoryPolicy.UPDATE_POLICY_DAILY;
  
          if (policy != null) {
              enabled = policy.isEnabled();
              if (policy.getUpdatePolicy() != null) {
                  updates = policy.getUpdatePolicy();
              }
              if (policy.getChecksumPolicy() != null) {
                  checksums = policy.getChecksumPolicy();
              }
          }
  
          return new RepositoryPolicy(enabled, updates, checksums);
      }
docs: converts repository policy