code: private static org.apache.maven.model.RepositoryPolicy asMavenRepositoryPolicy(
              org.apache.maven.settings.RepositoryPolicy policy) {
  
          org.apache.maven.model.RepositoryPolicy mavenPolicy = new org.apache.maven.model.RepositoryPolicy();
          if (policy != null) {
              mavenPolicy.setChecksumPolicy(policy.getChecksumPolicy());
              mavenPolicy.setUpdatePolicy(policy.getUpdatePolicy());
              mavenPolicy.setEnabled(policy.isEnabled());
          }
  
          return mavenPolicy;
      }
docs: converts repository policy