public static String readEnvironment ( String environmentName ) throws MnoConfigurationException { String property = System . getenv ( environmentName ) ; if ( isNullOrEmpty ( property ) ) { throw new MnoConfigurationException ( "Could not environment variable: " + environmentName ) ; } return property ; }
Return the value from the properties and if not found try to find in the System environment variable if not found throws a MnoConfigurationException