This function returns the fax job property for the
given key.

@param   key
The property key
@param   defaultValue
The default value
@return  The property value
966835
public String getProperty(String key,String defaultValue)
    {
        //get property value
        return this.PROPERTIES.getProperty(key,defaultValue);
    }
1247352
@SuppressWarnings("null")
	public static String value(String key, String defaultValue) {
		return System.getProperty(key, defaultValue);
	}
597842
public static String getProperty(String key, String defaultValue) {
        String env = System.getenv(key);
        if (env != null && !"".equals(env)) {
            return env;
        }
        return System.getProperty(key, defaultValue);
    }
48658
@Override
  public String get(String key, String defaultValue)
  {
    String value = _map.get(key);

    if (value != null) {
      return value;
    }
    else {
      return defaultValue;
    }
  }
331848
public synchronized String getAttribute(String key, String defaultValue)
	{
		if(attributes.containsKey(key))
		{
			return attributes.get(key).toString();
		}
		return defaultValue;
	}
1207825
private String getString(String key, String defaultValue, boolean required) {
        String value = map.get(key);
        if (value == null || value.length() == 0) {
            if (required) {
                throw new NullPointerException("Property value for key '" + key + "' is required");
            } else {
                return defaultValue == null ? value : defaultValue;
            }
        } else {
            return value;
        }
    }
736921
public int getProperty(String key, int defaultValue) {
        String value = getProperty(key, String.class);
        return StringUtils.isEmpty(value) ? defaultValue : Integer.parseInt(value);
    }
1283806
public final PJsonArray optJSONArray(final String key, final PJsonArray defaultValue) {
        PJsonArray result = optJSONArray(key);
        return result != null ? result : defaultValue;
    }
901033
public int get(Object key, int defaultValue) {
        if (key == null) { key = UniqueTag.NULL_VALUE; }
        int index = findIndex(key);
        if (0 <= index) {
            return values[index];
        }
        return defaultValue;
    }
78882
@SuppressWarnings("unchecked")
    public <T> T getProperty(String propName, T defaultValue) {
        String propValue = props.getProperty(propName);
        if (propValue == null)
            return defaultValue;
        return ReflectionUtil.<T>getObjectInstance(propValue);
    }
393095
public static String getProperty(InputStream input, String key, String defaultValue) {
		String property = null;
		try {
			property = PropertiesFactory.load(input).getProperty(key);
		} catch (IOException e) {}
		return property == null ? defaultValue : property;
	}
711962
private static String getFileParameterValue(FaxJob faxJob)
    {
        String value=null;
        File file=faxJob.getFile();
        if(file!=null)
        {
            try
            {
                //read file (only text files supported)
                value=IOHelper.readTextFile(faxJob.getFile());
            }
            catch(IOException exception)
            {
                throw new FaxException("Error while reading file.",exception);
            }
        }
    
        return value;
    }
478337
public String getString(Enum<?> key, String defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getString(key.name(), defaultValue);
    }
1081630
public int getProperty(String propName, int defaultValue) {
        String propValue = props.getProperty(propName);
        return (propValue == null) ? defaultValue : Integer.parseInt(propValue);
    }
789407
public function get($key, $defaultValue = null)
    {
        if (!isset($this->keyToIndexMap[$key]) && 2 === func_num_args()) {
            return $defaultValue;
        }

        return $this->value($key);
    }
24193
public function get(string $key, $defaultValue = null)
    {
        $key = $this->prepareKey($key);
        return Arr::get($this->properties, $key, $defaultValue);
    }
555837
public String getProperty(String key, String defaultValue) {
		return props.getProperty(prefix + key, defaultValue);
	}