Element extensions = root.element("extensions");
for (@SuppressWarnings("unchecked")
Iterator<Element> iter = extensions.elementIterator("extension"); iter.hasNext();) {
Element extensionElem = iter.next();
String id = extensionElem.elementText("id");
try {
Extensions extension = new Extensions();
//the primary key must be null for new objects if its an auto-increment
extension.setExten(unformatString(extensionElem
.element("exten").getText()));