Program: 93530
Project: 93530
Buggy source:
private static void startCoreSystem(){
  if (configuration == null) {
    LOGGER.error("String_Node_Str");
    stopServer();
    System.exit(-1);
  }
  if (!configuration.isHttpsListener() && !configuration.isHttpListener() && !configuration.isAjpListener()) {
    LOGGER.error("String_Node_Str");
    stopServer();
    System.exit(-1);
  }
  IdentityManager identityManager=null;
  if (configuration.getIdmImpl() == null) {
    LOGGER.warn("String_Node_Str");
    identityManager=null;
  }
 else {
    try {
      Object idm=Class.forName(configuration.getIdmImpl()).getConstructor(Map.class).newInstance(configuration.getIdmArgs());
      identityManager=(IdentityManager)idm;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      LOGGER.error("String_Node_Str",configuration.getIdmImpl(),ex);
      stopServer();
      System.exit(-3);
    }
  }
  AccessManager accessManager=null;
  if (configuration.getAmImpl() == null && configuration.getIdmImpl() != null) {
    LOGGER.warn("String_Node_Str");
    accessManager=null;
  }
 else   if (configuration.getAmImpl() == null && configuration.getIdmImpl() == null) {
    LOGGER.warn("String_Node_Str");
    accessManager=null;
  }
 else {
    try {
      Object am=Class.forName(configuration.getAmImpl()).getConstructor(Map.class).newInstance(configuration.getAmArgs());
      accessManager=(AccessManager)am;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      LOGGER.error("String_Node_Str",configuration.getAmImpl(),ex);
      stopServer();
      System.exit(-3);
    }
  }
  if (configuration.isAuthTokenEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getAuthTokenTtl());
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (getConf().isUseEmbeddedKeystore()) {
      char[] storepass="String_Node_Str".toCharArray();
      char[] keypass="String_Node_Str".toCharArray();
      String storename="String_Node_Str";
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      ks.load(Bootstrapper.class.getClassLoader().getResourceAsStream(storename),storepass);
      kmf.init(ks,keypass);
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
 else {
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      try (FileInputStream fis=new FileInputStream(new File(configuration.getKeystoreFile()))){
        ks.load(fis,configuration.getKeystorePassword().toCharArray());
        kmf.init(ks,configuration.getCertPassword().toCharArray());
        sslContext.init(kmf.getKeyManagers(),null,null);
      }
     }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
catch (  FileNotFoundException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
catch (  IOException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
  Builder builder=Undertow.builder();
  if (configuration.isHttpsListener()) {
    builder.addHttpsListener(configuration.getHttpsPort(),configuration.getHttpHost(),sslContext);
    LOGGER.info("String_Node_Str",configuration.getHttpsHost(),configuration.getHttpsPort());
  }
  if (configuration.isHttpListener()) {
    builder.addHttpListener(configuration.getHttpPort(),configuration.getHttpsHost());
    LOGGER.info("String_Node_Str",configuration.getHttpHost(),configuration.getHttpPort());
  }
  if (configuration.isAjpListener()) {
    builder.addAjpListener(configuration.getAjpPort(),configuration.getAjpHost());
    LOGGER.info("String_Node_Str",configuration.getAjpHost(),configuration.getAjpPort());
  }
  LocalCachesSingleton.init(configuration);
  if (configuration.isLocalCacheEnabled()) {
    LOGGER.info("String_Node_Str");
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  hanldersPipe=getHandlersPipe(identityManager,accessManager);
  builder.setIoThreads(configuration.getIoThreads()).setWorkerThreads(configuration.getWorkerThreads()).setDirectBuffers(configuration.isDirectBuffers()).setBufferSize(configuration.getBufferSize()).setBuffersPerRegion(configuration.getBuffersPerRegion()).setHandler(hanldersPipe);
  builder.build().start();
}

Fixed version (ground truth):
private static void startCoreSystem(){
  if (configuration == null) {
    LOGGER.error("String_Node_Str");
    stopServer();
    System.exit(-1);
  }
  if (!configuration.isHttpsListener() && !configuration.isHttpListener() && !configuration.isAjpListener()) {
    LOGGER.error("String_Node_Str");
    stopServer();
    System.exit(-1);
  }
  IdentityManager identityManager=null;
  if (configuration.getIdmImpl() == null) {
    LOGGER.warn("String_Node_Str");
    identityManager=null;
  }
 else {
    try {
      Object idm=Class.forName(configuration.getIdmImpl()).getConstructor(Map.class).newInstance(configuration.getIdmArgs());
      identityManager=(IdentityManager)idm;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      LOGGER.error("String_Node_Str",configuration.getIdmImpl(),ex);
      stopServer();
      System.exit(-3);
    }
  }
  AccessManager accessManager=null;
  if (configuration.getAmImpl() == null && configuration.getIdmImpl() != null) {
    LOGGER.warn("String_Node_Str");
    accessManager=new FullAccessManager();
  }
 else   if (configuration.getAmImpl() == null && configuration.getIdmImpl() == null) {
    LOGGER.warn("String_Node_Str");
    accessManager=new FullAccessManager();
  }
 else {
    try {
      Object am=Class.forName(configuration.getAmImpl()).getConstructor(Map.class).newInstance(configuration.getAmArgs());
      accessManager=(AccessManager)am;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      LOGGER.error("String_Node_Str",configuration.getAmImpl(),ex);
      stopServer();
      System.exit(-3);
    }
  }
  if (configuration.isAuthTokenEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getAuthTokenTtl());
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (getConf().isUseEmbeddedKeystore()) {
      char[] storepass="String_Node_Str".toCharArray();
      char[] keypass="String_Node_Str".toCharArray();
      String storename="String_Node_Str";
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      ks.load(Bootstrapper.class.getClassLoader().getResourceAsStream(storename),storepass);
      kmf.init(ks,keypass);
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
 else {
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      try (FileInputStream fis=new FileInputStream(new File(configuration.getKeystoreFile()))){
        ks.load(fis,configuration.getKeystorePassword().toCharArray());
        kmf.init(ks,configuration.getCertPassword().toCharArray());
        sslContext.init(kmf.getKeyManagers(),null,null);
      }
     }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
catch (  FileNotFoundException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
catch (  IOException ex) {
    LOGGER.error("String_Node_Str",ex);
    stopServer();
    System.exit(-1);
  }
  Builder builder=Undertow.builder();
  if (configuration.isHttpsListener()) {
    builder.addHttpsListener(configuration.getHttpsPort(),configuration.getHttpHost(),sslContext);
    LOGGER.info("String_Node_Str",configuration.getHttpsHost(),configuration.getHttpsPort());
  }
  if (configuration.isHttpListener()) {
    builder.addHttpListener(configuration.getHttpPort(),configuration.getHttpsHost());
    LOGGER.info("String_Node_Str",configuration.getHttpHost(),configuration.getHttpPort());
  }
  if (configuration.isAjpListener()) {
    builder.addAjpListener(configuration.getAjpPort(),configuration.getAjpHost());
    LOGGER.info("String_Node_Str",configuration.getAjpHost(),configuration.getAjpPort());
  }
  LocalCachesSingleton.init(configuration);
  if (configuration.isLocalCacheEnabled()) {
    LOGGER.info("String_Node_Str");
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  hanldersPipe=getHandlersPipe(identityManager,accessManager);
  builder.setIoThreads(configuration.getIoThreads()).setWorkerThreads(configuration.getWorkerThreads()).setDirectBuffers(configuration.isDirectBuffers()).setBufferSize(configuration.getBufferSize()).setBuffersPerRegion(configuration.getBuffersPerRegion()).setHandler(hanldersPipe);
  builder.build().start();
}