private static RepositoryPolicy toNativePolicy(MavenRemoteRepository.Policy policy) {
    RepositoryPolicy result = new RepositoryPolicy();
    result.setEnabled(policy.isEnabled());
    result.setUpdatePolicy(policy.getUpdatePolicy());
    result.setChecksumPolicy(policy.getChecksumPolicy());
    return result;
  }
private static RepositoryPolicy toNativePolicy(MavenRemoteRepository.Policy policy)