Gets the client name from the properties file
@param fileName Properties file name
@param defaultClientName Default client name
@return The client name
172397
public static String getApiClient(final Class<?> apiClass, final String fileName, final String defaultClientName) {
		
		InputStream propertiesStream = null;
		
		try {
			propertiesStream = apiClass.getResourceAsStream(fileName);
			
			if (propertiesStream != null) {			
				Properties props = new Properties();
				props.load(propertiesStream);
		
				String name = (String) props.get("api-client.name");
				String version = (String) props.get("api-client.version");

				return name + "-" + version;
			}
		} catch (Throwable t) {
			LOGGER.error("Exception reading {} configuration file", fileName, t);
		} finally {
			if (propertiesStream != null) {
				try {
					propertiesStream.close();
				} catch (Throwable t) {
					LOGGER.info("Exception closing {} configuration file", fileName, t);
				}
			}
		}
		
		return defaultClientName;
	}
367730
public String getStringProperty( String key , String defaultValue )
    {
        return getStringProperty(key,defaultValue,true);
    }
1285692
@Override
    public Object getProperty(IClientConfigKey key, Object defaultVal){
        Object val = getProperty(key);
        if (val == null){
            return defaultVal;
        }
        return val;
    }
1007278
public String findProperty( final String propertyName )
    {
        String value = null;
        if( m_properties != null )
        {
            value = m_properties.getProperty( propertyName );
        }
        return value;
    }
184338
public String getFieldName(String propertyName, JsonNode node) {

        if (node != null && node.has("javaName")) {
            propertyName = node.get("javaName").textValue();
        }

        return propertyName;
    }
558463
public static Properties getPropertiesFromPath(String fileName)
      throws PropertiesFileNotFoundException {

    Properties props = new Properties();
    FileInputStream fis;
    try {
      fis = new FileInputStream(fileName);
      props.load(fis);
      fis.close();
    } catch (Exception e) {
      throw new PropertiesFileNotFoundException(
          "ERROR LOADING PROPERTIES FROM PATH >" + fileName + "< !!!", e);
    }
    return props;
  }
456889
public <T> T getOrElse(ClientOption<T> option, T defaultValue) {
        return getOrElse0(option, defaultValue);
    }
393249
public String getString(String property, String defaultValue) {
    return getProperty(property, defaultValue, v -> v);
  }
14528
private String getProperty(String propertyName) {
            return propertyName == null ? null : (String) getPropertyValue(propertyName);
        }
1274550
public java.lang.String getDefaultHostname() {
    java.lang.Object ref = defaultHostname_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      defaultHostname_ = s;
      return s;
    }
  }
1218531
public static String getGetterName(String propertyName) {
        final String suffix = getSuffixForGetterOrSetter(propertyName);
        return PROPERTY_GET_PREFIX + suffix;
    }
363332
public static Key<String> getPropertyKey(String propertyName) {
        return Key.get(String.class, Names.named(propertyName));
    }
1161442
@Override
    public Map<String, String> createDefaultOptions() {
        HashMap<String, String> ret = new HashMap<String, String>();
        // Add any default options needed here (like path to default properties)

        ret.put("client", "client.properties");

        return ret;
    }
217262
private InputStream getDefault(String fileName) {
		InputStream result = null;
		try {
			result = new BufferedInputStream(new FileInputStream(fileName));
		} catch (IOException ignore) {
		}

		return result;
	}
168541
public String getProperty(String key, String defaultValue) {
        String val = properties.get(key);

        if (val == null) {
            val = defaultValue;
        }

        return val;
    }
1295569
public static String getSystemProperty(String name, String defaultValue) {
        String value;
        value = System.getProperty(name, null);
        if (value != null) {
            return value;
        }
        value = System.getenv(name);
        if (value != null) {
            return value;
        }
        return defaultValue;
    }
972629
function getAppName(filePath, defaultAppName) {
    defaultAppName = defaultAppName || 'common';

    if (!filePath) { return defaultAppName; }
    var idx = filePath.indexOf(delim + 'app' + delim);
    if (idx < 0) { return defaultAppName; }

    filePath = filePath.substring(idx + 5);

    idx = filePath.indexOf(delim);
    return idx > 0 ? filePath.substring(0, idx) : filePath;
}