Program: 64336
Project: 64336
Buggy source:
/** 
 * <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);
}

Fixed version (ground truth):
/** 
 * <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);
  }
  Project oxProject=null;
  if ((oxProject=loadOXMetadata(projectLoader)) == null) {
    String oxSessionKey=xrService.name + "String_Node_Str" + DBWS_OX_SESSION_NAME_SUFFIX;
    if (sessions.containsKey(oxSessionKey)) {
      xrService.oxSession=(Session)sessions.get(oxSessionKey);
      ((XMLLogin)xrService.oxSession.getDatasourceLogin()).setEqualNamespaceResolvers(false);
      oxProject=xrService.oxSession.getProject();
    }
    if (oxProject == null) {
      oxProject=new SimpleXMLFormatProject();
    }
  }
  ProjectHelper.fixOROXAccessors(xrService.orSession.getProject(),oxProject);
  ((XMLLogin)oxProject.getDatasourceLogin()).setPlatformClassName(DOM_PLATFORM_CLASSNAME);
  ((XMLLogin)oxProject.getDatasourceLogin()).setEqualNamespaceResolvers(false);
  xrService.xmlContext=new XMLContext(oxProject);
  xrService.oxSession=xrService.xmlContext.getSession(0);
}