public static String getTargetFolderForCustomAppFiles(String targetUrl, EncryptionService encryptionService) {
        ResourceDescriptor targetResourceDescriptor = ResourceDescriptorFactory.fromAnyUrl(targetUrl, encryptionService);
        if (targetResourceDescriptor.isFolder()) {
            throw new IllegalArgumentException("Target url must be a file");
        }
        if (targetResourceDescriptor.getType() != ResourceTypes.APPLICATION) {
            throw new IllegalArgumentException("Target url must be an application type");
        }
        String appName = targetResourceDescriptor.getName();
        String appPath = targetResourceDescriptor.getParentPath();
        if (appPath == null) {
            return "." + appName + ResourceDescriptor.PATH_SEPARATOR;
        } else {
            return appPath + ResourceDescriptor.PATH_SEPARATOR + "." + appName + ResourceDescriptor.PATH_SEPARATOR;
        }
    }
Leaves only required fields for listing.
server/src/main/java/com/epam/aidial/core/server/service/PublicationService.java