code: public void removeSessions(PrimitiveId primitiveId) {
      sessions.entrySet().removeIf(e -> e.getValue().getService().serviceId().equals(primitiveId));
    }
docs: Removes all sessions registered for the given service.
  
  @param primitiveId the service identifier