class CouchbaseUtils {

    public static String getStringContent(Bucket bucket, String id) {
        final LegacyDocument doc = bucket.get(LegacyDocument.create(id));
        if (doc == null) {
            return null;
        }
        final Object content = doc.content();
        return getStringContent(content);
    }

}