Element dataElement = (Element)frag.elementIterator().next();
workgroupSettings.add(workgroup.getJID().toBareJID(), dataElement);
}
private void getIQPrivate(IQ packet) {
WorkgroupSettings settings = new WorkgroupSettings();
IQ replyPacket = null;
Element child = packet.getChildElement();
Element dataElement = (Element)child.elementIterator().next();
if (dataElement != null) {
if (IQ.Type.get.equals(packet.getType())) {
replyPacket = IQ.createResultIQ(packet);
Element dataStored = settings.get(workgroup.getJID().toBareJID(), dataElement);
dataStored.setParent(null);
child.remove(dataElement);
child.setParent(null);
replyPacket.setChildElement(child);