try {
if (SerialServerProperties.getInstance().getDebugLevel() > 1) {
debug = true;
}
serverConnection = ServerConnection.getInstance(SerialServerProperties.getInstance().getTcpPort());
parser = new MessageParser();
visitor = new SerialServerVisitor();
System.out.println("serialServer listening on port " + SerialServerProperties.getInstance().getTcpPort());
while(true) {
serverConnection.waitForConnection();