class ViewHelper {

    public String summarize(BaseDocumentation doc, int length, String elideText)
    {
        StringBuffer summary = new StringBuffer(doc.summarize(length));
        if(length == summary.length())
        {
            summary.append(elideText);
        }
        return summary.toString();
    }

}