public static String findProperty(String propertyName, String defaultValue) { String value = getSystemProperty(propertyName); if (StringUtils.isNotBlank(value)) { return value; } else { return findEnvironmentProperty(System.getenv(), propertyName, defaultValue); } }