if (rooComment instanceof org.springframework.roo.classpath.details.comments.LineComment) {
comment = new LineComment();
}
else if (rooComment instanceof org.springframework.roo.classpath.details.comments.JavadocComment) {
comment = new JavadocComment();
}
else {
comment = new BlockComment();
}