public static boolean unregisterService(long id){
  boolean exitStatus=false;
  if (ID_TO_SERVICE_MAP.get(id) == null) {
    LOG.warning("Cannot deregister an unregistered service.");
  }
 else {
    Service<?> service=ID_TO_SERVICE_MAP.put(id,null);
    if (service != null) {
      SERVICE_TO_USER_MAP.remove(service);
    }
    exitStatus=true;
  }
  return exitStatus;
}

public static boolean unregisterService ( long id ) { boolean exitStatus = false ; if ( ID_TO_SERVICE_MAP . get ( id ) == null ) { LOG . warning ( "Cannot deregister an unregistered service." ) ; } else { Service < ? > service = ID_TO_SERVICE_MAP . put ( id , null ) ; if ( service != null ) { SERVICE_TO_USER_MAP . remove ( service ) ; } exitStatus = true ; } return exitStatus ; }
unregisters the given id . all traces of the service are removed .
