@Override
	public void networkMessage(Byte node, NetworkMessage type) {
		// TODO Handle messages
		try {
			switch(type) {
			case NEWKEEPALIVE:
				networkTreeMap.put(node,new TreeSet<Byte>());
				this.addPath(deviceID, node);
				this.userNotification(node,true);
				send(node,buildPacket());
//				System.out.println("Host new.");
				break;
			case DROPPED:
				this.userNotification(node,false);
				this.removeNode(node);
//				System.out.println("Host dropped.");
				break;
			case NOKEEPALIVE:
				this.removePath(this.deviceID, node);
//				System.out.println("Host nokeepalive.");
				break;
			default:
				break;
			}
		} catch (CallbackException e) {
			e.getException().printStackTrace();
		}
	}