public static String getRequiredSystemProperty ( String propertyName , String errorMsgIfNotFound ) { String propertyValue = System . getProperty ( propertyName ) ; if ( propertyValue == null ) { throw new RuntimeException ( errorMsgIfNotFound ) ; } return propertyValue ; }
Retrieve system property by name failing if it s not found