repositoryCommonValidator.setArchivaConfiguration( archivaConfig );
repositoryCommonValidator.setRegistry( registry );
managedRepositoryAdmin.setRepositoryCommonValidator( repositoryCommonValidator );
remoteRepositoryAdmin = new DefaultRemoteRepositoryAdmin();
remoteRepositoryAdmin.setArchivaConfiguration( archivaConfig );
remoteRepositoryAdmin.setAuditListeners( Arrays.asList( auditListener ) );
remoteRepositoryAdmin.setRepositoryCommonValidator( repositoryCommonValidator );