System.out.println("***********************************************");
HeaderFactoryImpl himpl = new HeaderFactoryImpl();
PAssertedServiceHeader ppsh = himpl.createPAssertedServiceHeader();
// This is a 3gpp-service type:
ppsh.setSubserviceIdentifiers("chatroom.presenceenabled.photoshareservice");
System.out.println("The encoded header is-----> "+ppsh.toString());
System.out.println("The sub-service defined is---->"+ppsh.getSubserviceIdentifiers());
}