Reg: createPrivacyList issue

Hai,
I am new to use XMPP.I am using smack API in my application.I need to create new PrivacyList.

String listName = "testCreateActiveList";
PrivacyListManager privacyManager = PrivacyListManager.getInstanceFor(connection);
PrivacyClient client = new PrivacyClient(privacyManager);
privacyManager.addListener(client);
// Add the list that will be set as the active
List items = new ArrayList();
PrivacyItem item = new PrivacyItem(PrivacyItem.Type.jid.name(), false, 1);
item.setValue(userName);
item.setFilterMessage(true);
item.setFilterPresence_in(true);
item.setFilterPresence_out(true);
items.add(item);

privacyManager.createPrivacyList(listName, items);

It is compiled fine.when i run this code i got the Exception
feature-not-implemented(501).

Please help to solve this problem.

Regards,
subbu

Syndicate content