throws NotAuthorizedException, TigaseDBException {
log.finest("Loading privacy list: " + list);
String lNode = listNode(list);
String list_str = session.getData(lNode, PRIVACY_LIST, null);
if (list_str != null && !list_str.isEmpty()) {
SimpleParser parser = SingletonFactory.getParserInstance();
DomBuilderHandler domHandler = new DomBuilderHandler();
parser.parse(domHandler, list_str.toCharArray(), 0, list_str.length());
Queue<Element> elems = domHandler.getParsedElements();
Element result = elems.poll();
log.finest("Loaded privacy list: " + result.toString());
return result;
} else {