code: public static String getName(URI uri) {
          if (uri == null) {
              throw MESSAGES.nullArgument("uri");
          }
          String name = uri.getPath();
          if (name != null) {
              // TODO: Not correct for certain uris like jar:...!/
              int lastSlash = name.lastIndexOf('/');
              if (lastSlash > 0) { name = name.substring(lastSlash + 1); }
          }
          return name;
      }
docs: Get the name.
  
  @param uri the uri
  @return name from uri's path