private static String readStringAttributeIfPresent(
            UserDefinedFileAttributeView view, Set<String> attr, String name)
            throws IOException {
        if (!attr.contains(name)) {
            return null;
        }
        ByteBuffer buf = ByteBuffer.allocate(view.size(name));
        view.read(name, buf);
        return new String(buf.array(), StandardCharsets.UTF_8);
    }
Read the String representation of a filesystem attribute, or return null
if not present.
src/main/java/org/gaul/s3proxy/nio2blob/AbstractNio2BlobStore.java