class K8SFileChannel extends SeekableInMemoryByteChannel {

    @Override
    public void close() {
        try {
            ccf.executeCloudFunction(client -> createOrReplaceFSCM(client,
                                                                   file,
                                                                   createOrReplaceParentDirFSCM(client, file, size(), false),
                                                                   Collections.singletonMap(CFG_MAP_FSOBJ_CONTENT_KEY,
                                                                                            super.toString()),
                                                                   false),
                                     KubernetesClient.class);
        } finally {
            this.ccf = null;
            this.file = null;
            super.close();
        }
    }

    public  K8SFileChannel(Path file, CloudClientFactory ccf);

}