class Predicates {

   public static boolean isHubRequired(Model m) {
      if(m == null || !m.supports(DeviceAdvancedCapability.NAMESPACE)) {
         return false;
      }

      String prot = DeviceAdvancedModel.getProtocol(m);
      if(StringUtils.isBlank(prot)) {
         return false;
      }

      switch(prot) {
         case Constants.Protocol.ZIGBEE:
         case Constants.Protocol.ZWAVE:
         case Constants.Protocol.SERCOMM:
            return true;
         default:
            return false;
      }
   }

   private  Predicates();

}