public static synchronized Element getElemnetByID(String id) {
        return (Element)generatedModel.selectSingleNode("//*[@id='" + id + "']");
    }
Convenience method to select an element from the model by its ID. If an
element with a matching ID is not found, {@code null} will be returned.

@param id the ID.
@return the element.
xmppserver/src/main/java/org/jivesoftware/admin/AdminConsole.java