code: 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);
          }
      }
docs: Creates a URI from a source file name.
  @param name the source file name.
  @return the URI.
  @throws NullPointerException if <code>name</code>
  is null.
  @throws IllegalArgumentException if <code>name</code>
  is invalid.