private void writeManifest() {
        try {
            final Path manifestFile = fileSystemStreamPathHelper.getChildPath(getFile(),
                    InternalStreamTypeNames.MANIFEST);
            // No manifest done yet ... output one if the parent dir's exist
            if (Files.isDirectory(getFile().getParent())) {
                try (final OutputStream outputStream = fileSystemStreamPathHelper.getOutputStream(
                        InternalStreamTypeNames.MANIFEST,
                        manifestFile)) {
                    AttributeMapUtil.write(getAttributes(), outputStream);
                }
            } else {
                LOGGER.warn(() -> "closeStreamTarget() - Closing target file with no directory present");
            }
        } catch (final IOException e) {
            LOGGER.error(() -> "closeStreamTarget() - Error on writing Manifest " + this, e);
        }
    }
Creates a new file system stream target.

@return A new file system target.
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsTarget.java