public void handle(DiameterMessage message) throws IOException
{
try
{
TShData data = TShData.Factory.parse(new ByteArrayInputStream(message.get(Sh.USER_DATA)));
System.out.println(data.getShIMSData());
ShDataDocument doc = ShDataDocument.Factory.parse(new ByteArrayInputStream(message.get(Sh.USER_DATA)));
TShData data2 = doc.getShData();
System.out.println(data2.getShIMSData());
}
catch (Exception e)
{
e.printStackTrace();
}