private static NetworkConfig load ( JsonObject jsonConfig ) throws InvalidArgumentException , NetworkConfigurationException { // Sanity check if ( jsonConfig == null ) { throw new InvalidArgumentException ( "config must be specified" ) ; } return new NetworkConfig ( jsonConfig ) ; }
Returns a new NetworkConfig instance and populates it from the specified JSON object