Example for the use of Apache Mina