void () { ArtifactFactory artifactFactory = getComponent(ArtifactFactory.class); if (artifactFactory instanceof CustomMaven3ArtifactFactory) { ((CustomMaven3ArtifactFactory)artifactFactory).reset(); } ArtifactResolver artifactResolver = getComponent(ArtifactResolver.class); if (artifactResolver instanceof CustomMaven3ArtifactResolver) { ((CustomMaven3ArtifactResolver)artifactResolver).reset(); } RepositoryMetadataManager repositoryMetadataManager = getComponent(RepositoryMetadataManager.class); if (repositoryMetadataManager instanceof CustomMaven3RepositoryMetadataManager) { ((CustomMaven3RepositoryMetadataManager)repositoryMetadataManager).reset(); } }