I'm a new comer to Apache MINA kindly guide me how you can read from IoSession. I've saved a POJO inside it.

public static EchoUDPServerDiscoveryObjectResponseProperties echoProperties

session.write(echoProperties);