code: public static String getCanonicalPathFromCredentials(final StorageCredentials credentials, final String absolutePath) {
          final String account = credentials.getAccountName();
  
          if (account == null) {
              final String errorMessage = SR.CANNOT_CREATE_SAS_FOR_GIVEN_CREDENTIALS;
              throw new IllegalArgumentException(errorMessage);
          }
          final StringBuilder builder = new StringBuilder("/");
          builder.append(account);
          builder.append(absolutePath);
          return builder.toString();
      }
docs: Gets the canonical path for an object from the credentials.
  
  @param credentials
  the credentials to use.
  @param absolutePath
  the Absolute path of the object.
  @return the canonical path for an object from the credentials