public String serialize(ItemIdMapper itemIdMapper) {
        StringBuilder builder = new StringBuilder();
        builder.append('(').append(name);

        serializeProperties(builder, itemIdMapper);
        serializeChildren(builder, itemIdMapper);

        builder.append(')');
        return builder.toString();
    }
Only public for the purpose of testing.
container-search/src/main/java/com/yahoo/search/query/textserialize/serializer/DispatchForm.java