@Override public void inspect( Event<?> evt ) { if ( evt instanceof RepositoryItemEvent ) { final RepositoryItemEvent ievt = (RepositoryItemEvent) evt; final List<ShadowRepository> shadows = repositoryRegistry.getRepositoriesWithFacet( ShadowRepository.class ); for ( ShadowRepository shadow : shadows ) { // NEXUS-4901: this change is to lessen the logging noise, that is otherwise harmless but ugly if ( shadow.getMasterRepositoryId().equals( ievt.getRepository().getId() ) ) { shadow.onRepositoryItemEvent( ievt ); } } } } }