class Configs {

    public static String getSystemPropertyWithMavenPropertyAsFallback(Properties properties, String key) {
        String val = System.getProperty(key);
        if (val == null && properties != null) {
            val = properties.getProperty(key);
        }
        return val;
    }

}