code: public static StorageUri getShareURI(final StorageUri fileAddress, final boolean usePathStyleUris)
              throws URISyntaxException {
          final String shareName = getShareNameFromUri(fileAddress.getPrimaryUri(), usePathStyleUris);
  
          final StorageUri shareUri = appendPathToUri(getServiceClientBaseAddress(fileAddress, usePathStyleUris),
                  shareName);
          return shareUri;
      }
docs: Gets the share URI from a file address
  
  @param fileAddress
  the file address
  @param usePathStyleUris
  a value indicating if the address is a path style uri.
  @return the share URI from a file address
  @throws URISyntaxException