public static ResourceDescriptor fromPrivateUrl(String url, EncryptionService encryption) {
        ResourceDescriptor description = fromAnyUrl(url, encryption);

        if (description.isPublic()) {
            throw new IllegalArgumentException("Not private url: " + url);
        }

        return description;
    }
@param type           resource type
@param bucketName     bucket name (encrypted)
@param bucketLocation bucket location on blob storage; bucket location must end with /
@param path           url decoded relative path; if url path is null or empty we treat it as user home
server/src/main/java/com/epam/aidial/core/server/util/ResourceDescriptorFactory.java