class Predicates {

   public static boolean isHubOffline(Model m) {
      return m != null && m.supports(HubCapability.NAMESPACE) && Objects.equals(HubCapability.STATE_DOWN, HubModel.getState(m));
   }

   private  Predicates();

}