code: public static Integer getIntegerProperty(Configuration config, String key,
                                               Integer defaultValue) throws DeployerConfigurationException {
          try {
              return config.getInteger(key, defaultValue);
          } catch (Exception e) {
              throw new DeployerConfigurationException("Failed to retrieve property '" + key + "'", e);
          }
      }
docs: Returns the specified Integer property from the configuration
  
  @param config       the configuration
  @param key          the key of the property
  @param defaultValue the default value if the property is not found
  @return the Integer value of the property, or the default value if not found
  @throws DeployerConfigurationException if an error occurred