String packetAuthor = (packet.getInfo() == null || packet.getInfo().getAuthor() == null || packet.getInfo().getAuthor().isEmpty()) ? "nobody" : packet.getInfo().getAuthor();
LOGGER.debug("Packet author: {}", packetAuthor);
StringBuilder packetJavadoc = new StringBuilder("Auto-generated by \"Packet generator\", on ").append(SDF.format(new Date())).append("\n").append(packetDescription)
.append("\n\n@author ").append(packetAuthor);
JDocComment jDocComment = packetClass.javadoc();
jDocComment.add(packetJavadoc.toString());
// get all fields in this packet
List<PacketFieldType> fields = packet.getField();
processFields(packetName, fields, packetClass, codeModel, fromClient);