if (configuration == null) {
return;
}
logger.debug("Updating P2 repository metadata (remove) for [{}:{}]", item.getRepositoryId(), item.getPath());
try {
final Repository repository = repositories.getRepository(configuration.repositoryId());
final RepositoryItemUid p2RepoUid = repository.createUid(P2_REPOSITORY_ROOT_PATH);
File sourceP2Repository = null;
File destinationP2Repository = null;
try {
p2RepoUid.getLock().lock(Action.update);