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