public void acceptSharedResources(ProxyContext context, String invitationId) {
        String location = BucketBuilder.buildInitiatorBucket(context);
        String bucket = encryptionService.encrypt(location);
        invitationService.acceptInvitation(invitationId, location, invitation -> acceptInvitation(bucket, location, invitation));
    }
Accept an invitation to grand share access for provided resources

@param invitationId - invitation ID
server/src/main/java/com/epam/aidial/core/server/service/ShareService.java