docs: private int validateProperty(Map<String, Object> map, String propName, int defaultVal, TimeUnit units, Integer minVal, Integer maxVal, Boolean immediateSupported,
                                   ConnectorService connectorSvc) throws ResourceException {
          Object value = map.remove(propName);
  
          //Get property value and check if it is a number and convert it to long
          long val;
          if (value == null)
              return defaultVal;
          else if (value instanceof Number)
              val = ((Number) value).longValue();
          else
              try {
                  val = units == null ? Integer.parseInt((String) value) : MetatypeUtils.evaluateDuration((String) value, units);
              } catch (Exception x) {
                  ResourceException resX = connectorSvc.ignoreWarnOrFail(tc, x, ResourceException.class, "UNSUPPORTED_VALUE_J2CA8011", value, propName, name);
                  if (resX == null)
                      return defaultVal;
                  else
                      throw resX;
              }
  
          //Check if immediate is supported.  If not throw exception
          if (!immediateSupported && val == 0) {
              ResourceException immediateFailure = connectorSvc.ignoreWarnOrFail(tc, null, ResourceException.class, "UNSUPPORTED_VALUE_J2CA8011",
                                                                                 val, propName, CONNECTION_MANAGER);
              if (immediateFailure != null)
                  throw immediateFailure;
          }
  
          //Finally check if value is within tolerance
          if (val < minVal || val > maxVal) {
              ResourceException failure = connectorSvc.ignoreWarnOrFail(tc, null, ResourceException.class, "UNSUPPORTED_VALUE_J2CA8011",
                                                                        val, propName, CONNECTION_MANAGER);
              if (failure != null)
                  throw failure;
              return defaultVal;
          }
          return (int) val;
      }