* @return the element obtained by the Id, or null if it is not found.
*/
private static Element getElementByIdType(Document doc, String id) {
if (log.isDebugEnabled())
log.debug("getElementByIdType() Search for ID " + id);
WeakHashMap elementMap = (WeakHashMap) docMap.get(doc);
if (elementMap != null) {
WeakReference weakReference = (WeakReference) elementMap.get(id);
if (weakReference != null)
{
return (Element) weakReference.get();
}
}