class PathUtil {

  public static String toBucketName(URI uri) {
    String authority = uri.getAuthority();
    if (authority == null) {
      throw new IllegalArgumentException("URI " + uri + " has no authority part");
    }
    return authority;
  }

  private  PathUtil();

}