Program: 17925
Project: 17925
Buggy source:
/** 
 * Initializes the filter from the init params.  {@inheritDoc} 
 */
@Override public void init(FilterConfig config) throws ServletException {
  SecurityContextServiceImpl securityContextServiceImpl=new SecurityContextServiceImpl();
  String customDataRetrieverName=config.getInitParameter("String_Node_Str");
  boolean storeUsername=true;
  if ("String_Node_Str".equals(config.getInitParameter("String_Node_Str"))) {
    storeUsername=false;
  }
  UserDataRetrievalService userDataRetrievalService=null;
  if (customDataRetrieverName != null) {
    try {
      Class<?> customDataRetrievalClass=Class.forName(customDataRetrieverName);
      Object customDataRetrievalObject=customDataRetrievalClass.newInstance();
      if (customDataRetrievalObject instanceof CustomUserDataRetriever) {
        CustomUserDataRetriever<?> customDataRetriever=(CustomUserDataRetriever<?>)customDataRetrievalObject;
        userDataRetrievalService=new CustomUserDataRetrievalService(customDataRetriever,storeUsername);
      }
    }
 catch (    ClassNotFoundException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
catch (    InstantiationException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
catch (    IllegalAccessException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
  }
 else {
    userDataRetrievalService=new UserDataRetrievalService(storeUsername);
  }
  securityContextServiceImpl.setUserDataRetrievalService(userDataRetrievalService);
  oauthConnector=new ForceOAuthConnector(userDataRetrievalService);
  ForceOAuthConnectionInfo connInfo=null;
  if (config.getInitParameter("String_Node_Str") != null) {
    connInfo=new ForceOAuthConnectionInfo();
    connInfo.setEndpoint(config.getInitParameter("String_Node_Str"));
    connInfo.setOauthKey(config.getInitParameter("String_Node_Str"));
    connInfo.setOauthSecret(config.getInitParameter("String_Node_Str"));
    oauthConnector.setConnectionInfo(connInfo);
  }
 else   if (config.getInitParameter("String_Node_Str") != null) {
    connInfo=new ForceOAuthConnectionInfo();
    String connectionUrl=config.getInitParameter("String_Node_Str");
    if (ForceConnectorUtils.isInjectable(connectionUrl)) {
      connectionUrl=ForceConnectorUtils.extractValue(connectionUrl);
      if (connectionUrl == null || connectionUrl.equals("String_Node_Str")) {
        throw new IllegalArgumentException("String_Node_Str" + config.getInitParameter("String_Node_Str"));
      }
    }
    connInfo.setConnectionUrl(connectionUrl);
    oauthConnector.setConnectionInfo(connInfo);
  }
 else   if (config.getInitParameter("String_Node_Str") != null) {
    oauthConnector.setConnectionName(config.getInitParameter("String_Node_Str"));
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  }
  if (CONTEXT_STORE_SESSION_VALUE.equals(config.getInitParameter("String_Node_Str"))) {
    securityContextServiceImpl.setSecurityContextStorageService(new SecurityContextSessionStore());
  }
 else {
    SecurityContextCookieStore cookieStore=new SecurityContextCookieStore();
    try {
      cookieStore.setKeyFileName(config.getInitParameter("String_Node_Str"));
    }
 catch (    ForceEncryptionException e) {
      throw new ServletException(e);
    }
    securityContextServiceImpl.setSecurityContextStorageService(cookieStore);
  }
  securityContextService=securityContextServiceImpl;
  if ("String_Node_Str".equalsIgnoreCase(config.getInitParameter("String_Node_Str"))) {
    logoutFromDatabaseCom=false;
  }
  logoutUrl=config.getInitParameter("String_Node_Str");
  if (logoutUrl == null || "String_Node_Str".equals(logoutUrl)) {
    logoutUrl="String_Node_Str";
  }
}

Fixed version (ground truth):
/** 
 * Initializes the filter from the init params.  {@inheritDoc} 
 */
@Override public void init(FilterConfig config) throws ServletException {
  SecurityContextServiceImpl securityContextServiceImpl=new SecurityContextServiceImpl();
  String customDataRetrieverName=config.getInitParameter("String_Node_Str");
  boolean storeUsername=true;
  if ("String_Node_Str".equals(config.getInitParameter("String_Node_Str"))) {
    storeUsername=false;
  }
  UserDataRetrievalService userDataRetrievalService=null;
  if (customDataRetrieverName != null) {
    try {
      Class<?> customDataRetrievalClass=Class.forName(customDataRetrieverName);
      Object customDataRetrievalObject=customDataRetrievalClass.newInstance();
      if (customDataRetrievalObject instanceof CustomUserDataRetriever) {
        CustomUserDataRetriever<?> customDataRetriever=(CustomUserDataRetriever<?>)customDataRetrievalObject;
        userDataRetrievalService=new CustomUserDataRetrievalService(customDataRetriever,storeUsername);
      }
    }
 catch (    ClassNotFoundException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
catch (    InstantiationException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
catch (    IllegalAccessException e) {
      throw new ServletException("String_Node_Str" + customDataRetrieverName,e);
    }
  }
 else {
    userDataRetrievalService=new UserDataRetrievalService(storeUsername);
  }
  securityContextServiceImpl.setUserDataRetrievalService(userDataRetrievalService);
  oauthConnector=new ForceOAuthConnector(userDataRetrievalService);
  ForceOAuthConnectionInfo connInfo=null;
  if (config.getInitParameter("String_Node_Str") != null) {
    connInfo=new ForceOAuthConnectionInfo();
    connInfo.setEndpoint(config.getInitParameter("String_Node_Str"));
    connInfo.setOauthKey(config.getInitParameter("String_Node_Str"));
    connInfo.setOauthSecret(config.getInitParameter("String_Node_Str"));
    oauthConnector.setConnectionInfo(connInfo);
  }
 else   if (config.getInitParameter("String_Node_Str") != null) {
    connInfo=new ForceOAuthConnectionInfo();
    String connectionUrl=config.getInitParameter("String_Node_Str");
    if (ForceConnectorUtils.isInjectable(connectionUrl)) {
      connectionUrl=ForceConnectorUtils.extractValue(connectionUrl);
      if (connectionUrl == null || connectionUrl.equals("String_Node_Str")) {
        throw new IllegalArgumentException("String_Node_Str" + config.getInitParameter("String_Node_Str"));
      }
    }
    connInfo.setConnectionUrl(connectionUrl);
    oauthConnector.setConnectionInfo(connInfo);
  }
 else   if (config.getInitParameter("String_Node_Str") != null) {
    oauthConnector.setConnectionName(config.getInitParameter("String_Node_Str"));
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  }
  if (CONTEXT_STORE_SESSION_VALUE.equals(config.getInitParameter("String_Node_Str"))) {
    securityContextServiceImpl.setSecurityContextStorageService(new SecurityContextSessionStore());
  }
 else {
    SecurityContextCookieStore cookieStore=new SecurityContextCookieStore();
    try {
      if (config.getInitParameter("String_Node_Str") != null) {
        LOGGER.info("String_Node_Str" + config.getInitParameter("String_Node_Str"));
        String key=ForceConnectorUtils.extractValue(config.getInitParameter("String_Node_Str"));
        cookieStore.setKey(key);
      }
 else {
        LOGGER.info("String_Node_Str" + config.getInitParameter("String_Node_Str"));
        cookieStore.setKeyFileName(config.getInitParameter("String_Node_Str"));
      }
    }
 catch (    ForceEncryptionException e) {
      throw new ServletException(e);
    }
    securityContextServiceImpl.setSecurityContextStorageService(cookieStore);
  }
  String cookiePath=config.getInitParameter("String_Node_Str");
  if (cookiePath == null) {
    cookiePath=config.getServletContext().getContextPath();
  }
  securityContextServiceImpl.setCookiePath(cookiePath);
  securityContextService=securityContextServiceImpl;
  if ("String_Node_Str".equalsIgnoreCase(config.getInitParameter("String_Node_Str"))) {
    logoutFromDatabaseCom=false;
  }
  logoutUrl=config.getInitParameter("String_Node_Str");
  if (logoutUrl == null || "String_Node_Str".equals(logoutUrl)) {
    logoutUrl="String_Node_Str";
  }
}