changed client to Apache Mina