private void handleHTSMsg(HTSMsg msg){
		String method = (String) msg.get("method");

		if (msg.get("seq") != null) {
			handleReply(msg, (Long) msg.get("seq"));
		}
		else if (method == null){
			System.out.println("no seq, no method. Something is wrong. Forgot to send seq?");		
		} else{
			handleServerToClientMethod(msg, method);
		} 
	}