if (!Constants.DEFINITION_NS.equals(selectionListElement.getNamespaceURI()) || !"selection-list".equals(selectionListElement.getLocalName()))
throw new Exception("Excepted a wd:selection-list element at " + DomHelper.getLocation(selectionListElement));
return selectionListElement;
} finally {
if (source != null) {
resolver.release(source);
}
if (resolver != null) {
serviceManager.release(resolver);
}
}