private static Comment adaptComment(
final org.springframework.roo.classpath.details.comments.AbstractComment rooComment) {
Comment comment;
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 {