Builder(URL swaggerUrl){
  try {
    this.swaggerLocation=swaggerUrl.toURI();
  }
 catch (  URISyntaxException e) {
    throw new IllegalArgumentException("swaggerURL is in a wrong format",e);
  }
  this.swagger=readSwagger(swaggerUrl.toString());
}

Builder ( URL swaggerUrl ) { try { this . swaggerLocation = swaggerUrl . toURI ( ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( "swaggerURL is in a wrong format" , e ) ; } this . swagger = readSwagger ( swaggerUrl . toString ( ) ) ; }
creates a builder from a remote url .
