return buildSessionConfigs(sessionManager,loader,document,getProject());
}
}else{
//upon this time, we knew this could be either toplink sessions.xml or invalid eclipse session.xml.
if(document.getDocumentElement().getTagName().equals("toplink-sessions")){
return buildSessionConfigs(sessionManager,loader,document,new XMLSessionConfigToplinkProject());
}else{
// Throw the exceptions we encountered
throw SessionLoaderException.finalException(getExceptionStore());
}
}