} else {
// fromNode is a Author/Paper node
targetUri = (String) fromNode.getProperty(DBNodeProperties.URI);
}
Comments comment = new Comments();
comment.setUri((String) commentNode.getProperty(DBNodeProperties.COMMENT_URI));
comment.setAuthor(author);
comment.setComment((String) commentNode.getProperty(DBNodeProperties.COMMENT_BODY));
comment.setDate((String) commentNode.getProperty(DBNodeProperties.COMMENT_DATE));
comment.setVoting((Integer) commentNode.getProperty(DBNodeProperties.COMMENT_VOTES));
comment.setType(discussionTypeMapper.fromDBRelationship(relationshipType));
comment.setTargetUri(targetUri);
System.out.println("Got comment of type " + comment.getType() + ": " + comment.getComment());
return comment;
}