private static void escapeJavadoc(final Appendable out, final String doc) throws IOException
    {
        for (int i = 0, length = doc.length(); i < length; i++)
        {
            final char c = doc.charAt(i);
            switch (c)
            {
                case '<':
                    out.append("&lt;");
                    break;

                case '>':
                    out.append("&gt;");
                    break;

                default:
                    out.append(c);
                    break;
            }
        }
    }
\n")
            .append(indent).append(" * ");

        escapeJavadoc(sb, description);

        sb.append("\n")
            .append(indent).append(" *\n")
            .append(indent).append(" * @param count of times the group will be encoded.\n")
            .append(indent).append(" * @return ").append(typeName).append(" : encoder for the group.\n")
            .append(indent).append("
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java/JavaUtil.java