public static Environment parse ( URL url ) throws IOException { try { return new ConfigUtil . LowerCaseYamlMapper ( ) . readValue ( url , Environment . class ) ; } catch ( JsonMappingException e ) { throw new SqlClientException ( "Could not parse environment file. Cause: " + e . getMessage ( ) ) ; } }
Parses an environment file from an URL .