Console Server in Java using apache Mina