private static URI createUriFromName ( String name ) { if ( name == null ) { throw new NullPointerException ( "name" ) ; } try { return new URI ( name ) ; } catch ( final URISyntaxException e ) { throw new IllegalArgumentException ( "Invalid name: " + name , e ) ; } }
Creates a URI from a source file name .