@Override
	public void messageReceived(IoSession session, Object message) throws Exception {
		String text = UTFCoder.decode(message);
		System.out.printf("Recieved : %s \n", text);
		String[] parameter = parse(text);
		if(parameter.length>=2){
			if (parameter[0].equalsIgnoreCase("prepare")) {
				this.sendPromise(parameter[1]);
			} else if (parameter[0].equalsIgnoreCase("accept")) {
				this.sendAccepted(parameter[1]);
				learning(parameter[2]);
			}
		}
	}