* @throws CoreException if root node is not present
*/
private synchronized Node getRootNodeInXml() throws MisconfigurationException {
traceFunc("getRootNodeInXml");
if (document == null) {
throw new MisconfigurationException("Found null XML document. Please check if " + this.xmlFile
+ " is a valid XML file.");
}
NodeList nodeList = document.getElementsByTagName("pydev_project");
Node ret = null;
if (nodeList != null && nodeList.getLength() > 0) {