public final boolean remove(final URI serviceURI){
  boolean modified=false;
synchronized (this) {
    if (aliases.remove(serviceURI) != null) {
      modified=true;
    }
    final ServiceFactory factory=services.remove(serviceURI);
    if (factory != null) {
      modified=true;
      if (factory instanceof CustomServiceFactory) {
        customServices.remove(factory);
      }
    }
  }
  return modified;
}

public final boolean remove ( final URI serviceURI ) { boolean modified = false ; synchronized ( this ) { if ( aliases . remove ( serviceURI ) != null ) { modified = true ; } final ServiceFactory factory = services . remove ( serviceURI ) ; if ( factory != null ) { modified = true ; if ( factory instanceof CustomServiceFactory ) { customServices . remove ( factory ) ; } } } return modified ; }
remove a service from the registry and / or set of known aliases .
