final Collection comments = this.metaObject.getOwnedComments();
if (comments != null && !comments.isEmpty())
{
for (final Iterator commentIterator = comments.iterator(); commentIterator.hasNext();)
{
final Comment comment = (Comment)commentIterator.next();
String commentString = StringUtils.trimToEmpty(comment.getBody());
if (StringUtils.isEmpty(commentString))
{
commentString = StringUtils.trimToEmpty(comment.toString());
}
documentation.append(StringUtils.trimToEmpty(commentString));
documentation.append(SystemUtils.LINE_SEPARATOR);
}
}