code: public void removeDependency(final Registry registry) throws CouldNotPerformException {
          if (registry == null) {
              throw new NotAvailableException("registry");
          }
          registryLock.writeLock().lock();
          try {
              dependingRegistryMapLock.writeLock().lock();
              try {
                  if (!dependingRegistryMap.containsKey(registry)) {
                      logger.warn("Could not remove a dependency which was never registered!");
                      return;
                  }
                  dependingRegistryMap.remove(registry).shutdown();
              } finally {
                  dependingRegistryMapLock.writeLock().unlock();
              }
          } finally {
              registryLock.writeLock().unlock();
          }
      }
docs: This method allows the removal of a registered registry dependency.
  
  @param registry the dependency to remove.
  
  @throws org.openbase.jul.exception.CouldNotPerformException