*/
public void deleted(String pid) {
ServiceRegistration registration = services.remove(pid);
ContentRepository repository = (ContentRepository) bundleCtx.getService(registration.getReference());
try {
repository.disconnect();
} catch (ContentRepositoryException e) {
logger.warn("Error disconnecting repository {}: {}", repository, e.getMessage());
}
try {
registration.unregister();