private static void serializeOrigin(StringBuilder destination, String image, int offset, int length) {
        destination.append(ORIGIN).append(": {").append(ORIGIN_ORIGINAL).append(": \"");
        escape(image, destination);
        destination.append("\", ").append(ORIGIN_OFFSET).append(": ")
                .append(offset).append(", ").append(ORIGIN_LENGTH)
                .append(": ").append(length).append("}");
    }
Adds annotations and returns whether any were added
container-search/src/main/java/com/yahoo/search/yql/VespaSerializer.java