@Override
    public void genOperationComment(StringBuffer buff,
            Map<String, String> simpleToPrimitiveTypeMap, Operation o) {
        genBeginSeperator(buff);
        buff.append(String.format("#' @title %s\n", o.name));
        String description = o.description.replaceAll("[\\t\\n]", " ");
        description = description.replaceAll("\\s+", " ");
        description = description.replaceAll("^ ", "");
        description = WordUtils.wrap(description, 77, "\n#' ",
                false);
        if (description.trim().length() > 0) {
            buff.append("#' @description ").append(description).append("\n");
        }
        if (o.parameters != null) {
            Request r = o.parameters.request;
            if (r.parameter != null) {
                for (Parameter p : r.parameter) {
                    String t = convertValidateRTypes(p.type);
                    if ((simpleToPrimitiveTypeMap.containsKey(t))) {
                        t = convertValidateRTypes(simpleToPrimitiveTypeMap
                                .get(t));
                    }
                    String mandatory = "optional";
                    if (p.mandatory != null && p.isMandatory()) {
                        mandatory = "mandatory";
                    }
                    String pdescription = p.description.replaceAll("[\\t\\n]",
                            " ");
                    pdescription = pdescription.replaceAll("\\s+", " ");
                    pdescription = pdescription.replaceAll("^ ", "");
                    pdescription = pdescription.replaceAll("@", "");
                    pdescription = WordUtils.wrap(pdescription, 70,
                            "\n#'          ", false);
                    buff.append(String.format(
                            "#' @param   %s is %s of type %s.\n", p.name,
                            mandatory, t));
                    buff.append(String.format("#'          %s\n",
                            pdescription));
                }
            }
            SimpleResponse s = o.parameters.simpleResponse;
            if (s.description != null) {
                String sdescription = s.description.replaceAll("[\\t\\n]", " ");
                sdescription = sdescription.replaceAll("\\s+", " ");
                sdescription = sdescription.replaceAll("^ ", "");
                if (sdescription.trim().length() > 0) {
                    sdescription = WordUtils.wrap(sdescription, 70,
                            "\n#'          ", false);
                    buff.append(String.format("#' @return  %s\n", sdescription));
                }
            }
        }
        genEndSeperator(buff);
    }