HeaderFactoryImpl himpl = new HeaderFactoryImpl();
AddressFactory addFactory = new AddressFactoryImpl();
try {
PProfileKeyHeader ppkey = himpl.createPProfileKeyHeader
(addFactory.createAddress("aayush's room",
addFactory.createSipURI("aayushzChatRoom-19", "rancoremumbai.com")));
System.out.println("The newly encoded header is---> "+ppkey.toString());
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}