Program: 64368
Project: 64368
Buggy source:
/** 
 * <p>INTERNAL:
 */
public void buildSessions(){
  ClassLoader projectLoader=new XRDynamicClassLoader(parentClassLoader);
  SessionManager sessionManager=SessionManager.getManager();
  boolean found=false;
  String sessionsFile=xrService.sessionsFile == null ? DBWS_SESSIONS_XML : xrService.sessionsFile;
  for (  String prefix : META_INF_PATHS) {
    String searchPath=prefix + sessionsFile;
    XRSessionConfigLoader loader=new XRSessionConfigLoader(searchPath);
    loader.setShouldLogin(false);
    try {
      found=loader.load(sessionManager,projectLoader);
    }
 catch (    RuntimeException e) {
    }
    if (found) {
      break;
    }
  }
  if (!found) {
    throw DBWSException.couldNotLocateFile(DBWS_SESSIONS_XML);
  }
  Map sessions=sessionManager.getSessions();
  String orSessionKey=xrService.name + "String_Node_Str" + DBWS_OR_SESSION_NAME_SUFFIX;
  if (sessions.containsKey(orSessionKey)) {
    xrService.orSession=(Session)sessions.get(orSessionKey);
  }
 else {
    throw DBWSException.couldNotLocateORSessionForService(xrService.name);
  }
  String oxSessionKey=xrService.name + "String_Node_Str" + DBWS_OX_SESSION_NAME_SUFFIX;
  if (sessions.containsKey(oxSessionKey)) {
    xrService.oxSession=(Session)sessions.get(oxSessionKey);
  }
 else {
    throw DBWSException.couldNotLocateOXSessionForService(xrService.name);
  }
  ((XMLLogin)xrService.oxSession.getDatasourceLogin()).setEqualNamespaceResolvers(false);
  ProjectHelper.fixOROXAccessors(xrService.orSession.getProject(),xrService.oxSession.getProject());
  xrService.xmlContext=new XMLContext(xrService.oxSession.getProject());
  xrService.oxSession=xrService.xmlContext.getSession(0);
}

Fixed version (ground truth):
/** 
 * <p>INTERNAL:
 */
public void buildSessions(){
  ClassLoader projectLoader=new XRDynamicClassLoader(parentClassLoader);
  Project oxProject=loadOXMetadata(projectLoader);
  ((XMLLogin)oxProject.getDatasourceLogin()).setPlatformClassName(DOM_PLATFORM_CLASSNAME);
  ((XMLLogin)oxProject.getDatasourceLogin()).setEqualNamespaceResolvers(false);
  xrService.xmlContext=new XMLContext(oxProject);
  xrService.oxSession=xrService.xmlContext.getSession(0);
  SessionManager sessionManager=SessionManager.getManager();
  boolean found=false;
  String sessionsFile=xrService.sessionsFile == null ? DBWS_SESSIONS_XML : xrService.sessionsFile;
  for (  String prefix : META_INF_PATHS) {
    String searchPath=prefix + sessionsFile;
    XRSessionConfigLoader loader=new XRSessionConfigLoader(searchPath);
    loader.setShouldLogin(false);
    try {
      found=loader.load(sessionManager,projectLoader);
    }
 catch (    RuntimeException e) {
    }
    if (found) {
      break;
    }
  }
  if (!found) {
    throw DBWSException.couldNotLocateFile(DBWS_SESSIONS_XML);
  }
  Map sessions=sessionManager.getSessions();
  String orSessionKey=xrService.name + "String_Node_Str" + DBWS_OR_SESSION_NAME_SUFFIX;
  if (sessions.containsKey(orSessionKey)) {
    xrService.orSession=(Session)sessions.get(orSessionKey);
  }
 else {
    throw DBWSException.couldNotLocateORSessionForService(xrService.name);
  }
  ProjectHelper.fixOROXAccessors(xrService.orSession.getProject(),oxProject);
}