Program: 47264
Project: 47264
Buggy source:
/** 
 * Initialisation procedure for PMS.
 * @return true if the server has been initialized correctly. false if the server couldnot be set to listen on the UPnP port.
 * @throws Exception
 */
private boolean init() throws Exception {
  AutoUpdater autoUpdater=null;
  VERSION=getVersion();
  if (Build.isUpdatable()) {
    String serverURL=Build.getUpdateServerURL();
    autoUpdater=new AutoUpdater(serverURL,getVersion());
  }
  registry=createSystemUtils();
  if (configuration.isRunWizard() && !isHeadless()) {
    int whetherToRunWizard=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),JOptionPane.YES_NO_OPTION);
    if (whetherToRunWizard == JOptionPane.YES_OPTION) {
      int numberOfQuestions=4;
      int currentQuestionNumber=1;
      int whetherToStartMinimized=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToStartMinimized == JOptionPane.YES_OPTION) {
        configuration.setMinimized(true);
        save();
      }
 else       if (whetherToStartMinimized == JOptionPane.NO_OPTION) {
        configuration.setMinimized(false);
        save();
      }
      int whetherToSendDTS=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToSendDTS == JOptionPane.YES_OPTION) {
        configuration.setDTSEmbedInPCM(true);
        save();
      }
 else       if (whetherToSendDTS == JOptionPane.NO_OPTION) {
        configuration.setDTSEmbedInPCM(false);
        save();
      }
      Object[] options={Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str")};
      int networkType=JOptionPane.showOptionDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,options,options[1]);
      if (networkType == JOptionPane.YES_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
 else       if (networkType == JOptionPane.NO_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
 else       if (networkType == JOptionPane.CANCEL_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
      int whetherToHideAdvancedOptions=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToHideAdvancedOptions == JOptionPane.YES_OPTION) {
        configuration.setHideAdvancedOptions(true);
        save();
      }
 else       if (whetherToHideAdvancedOptions == JOptionPane.NO_OPTION) {
        configuration.setHideAdvancedOptions(false);
        save();
      }
      configuration.setRunWizard(false);
      save();
    }
 else     if (whetherToRunWizard == JOptionPane.NO_OPTION) {
      configuration.setRunWizard(false);
      save();
    }
  }
  if (System.getProperty(CONSOLE) == null) {
    frame=new LooksFrame(autoUpdater,configuration);
  }
 else {
    LOGGER.info("String_Node_Str");
    LOGGER.info("String_Node_Str");
    frame=new DummyFrame();
  }
  configuration.addConfigurationListener(new ConfigurationListener(){
    @Override public void configurationChanged(    ConfigurationEvent event){
      if ((!event.isBeforeUpdate()) && PmsConfiguration.NEED_RELOAD_FLAGS.contains(event.getPropertyName())) {
        frame.setReloadable(true);
      }
    }
  }
);
  frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
  proxy=-1;
  LOGGER.info("String_Node_Str" + PropertiesUtil.getProjectProperties().get("String_Node_Str") + "String_Node_Str"+ getVersion());
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str");
  String commitId=PropertiesUtil.getProjectProperties().get("String_Node_Str");
  String commitTime=PropertiesUtil.getProjectProperties().get("String_Node_Str");
  String shortCommitId=commitId.substring(0,9);
  LOGGER.info("String_Node_Str" + shortCommitId + "String_Node_Str"+ commitTime+ "String_Node_Str");
  logSystemInfo();
  String cwd=new File("String_Node_Str").getAbsolutePath();
  LOGGER.info("String_Node_Str" + cwd);
  LOGGER.info("String_Node_Str" + configuration.getTempFolder());
  LOGGER.info("String_Node_Str" + LoggingConfigFileLoader.getConfigFilePath());
  HashMap<String,String> lfps=LoggingConfigFileLoader.getLogFilePaths();
  if (lfps != null && lfps.size() > 0) {
    if (lfps.size() == 1) {
      Entry<String,String> entry=lfps.entrySet().iterator().next();
      LOGGER.info(String.format("String_Node_Str",entry.getKey(),entry.getValue()));
    }
 else {
      LOGGER.info("String_Node_Str");
      Iterator<Entry<String,String>> logsIterator=lfps.entrySet().iterator();
      Entry<String,String> entry;
      while (logsIterator.hasNext()) {
        entry=logsIterator.next();
        LOGGER.info(String.format("String_Node_Str",entry.getKey(),entry.getValue()));
      }
    }
  }
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str" + configuration.getProfileDirectory());
  String profilePath=configuration.getProfilePath();
  LOGGER.info("String_Node_Str" + profilePath);
  File profileFile=new File(profilePath);
  if (profileFile.exists()) {
    String permissions=String.format("String_Node_Str",FileUtil.isFileReadable(profileFile) ? "String_Node_Str" : "String_Node_Str",FileUtil.isFileWritable(profileFile) ? "String_Node_Str" : "String_Node_Str");
    LOGGER.info("String_Node_Str" + permissions);
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  LOGGER.info("String_Node_Str" + configuration.getProfileName());
  LOGGER.info("String_Node_Str");
  File dDir=new File(configuration.getDataDir());
  dDir.mkdirs();
  dbgPack=new DbgPacker();
  tfm=new TempFileMgr();
  OpenSubtitle.convert();
  RendererConfiguration.loadRendererConfigurations(configuration);
  LOGGER.info("String_Node_Str");
  if (Platform.isLinux()) {
    checkProcessExistence("String_Node_Str",true,null,"String_Node_Str" + configuration.getMplayerPath(),"String_Node_Str");
  }
 else {
    checkProcessExistence("String_Node_Str",true,null,configuration.getMplayerPath(),"String_Node_Str");
  }
  if (isWindows()) {
    checkProcessExistence("String_Node_Str",true,configuration.getTempFolder(),configuration.getMplayerPath(),"String_Node_Str");
  }
  LOGGER.info("String_Node_Str");
  if (registry.isAvis() && registry.getAvsPluginsDir() != null) {
    LOGGER.debug("String_Node_Str" + registry.getAvsPluginsDir().getAbsolutePath());
    File vsFilterDLL=new File(registry.getAvsPluginsDir(),"String_Node_Str");
    if (vsFilterDLL.exists()) {
      LOGGER.debug("String_Node_Str");
    }
 else {
      File vsFilterDLL2=new File(registry.getKLiteFiltersDir(),"String_Node_Str");
      if (vsFilterDLL2.exists()) {
        LOGGER.debug("String_Node_Str");
      }
 else {
        LOGGER.info("String_Node_Str");
      }
    }
  }
  String vlcVersion=registry.getVlcVersion();
  String vlcPath=registry.getVlcPath();
  if (vlcVersion != null && vlcPath != null) {
    LOGGER.info("String_Node_Str" + vlcVersion + "String_Node_Str"+ vlcPath);
    Version vlc=new Version(vlcVersion);
    Version requiredVersion=new Version("String_Node_Str");
    if (vlc.compareTo(requiredVersion) <= 0) {
      LOGGER.error("String_Node_Str");
    }
  }
  if (registry.isKerioFirewall()) {
    LOGGER.info("String_Node_Str");
  }
  File dvrsMsffmpegmuxer=new File("String_Node_Str");
  if (dvrsMsffmpegmuxer.exists()) {
    configuration.setFfmpegAlternativePath(dvrsMsffmpegmuxer.getAbsolutePath());
  }
  LogManager.getLogManager().readConfiguration(new ByteArrayInputStream("String_Node_Str".getBytes()));
  System.setErr(new PrintStream(new SystemErrWrapper(),true));
  server=new HTTPServer(configuration.getServerPort());
  try {
    ExternalFactory.lookup();
  }
 catch (  Exception e) {
    LOGGER.error("String_Node_Str",e);
  }
  PlayerFactory.initialize(configuration);
  ExternalFactory.instantiateLateListeners();
  Player.initializeFinalizeTranscoderArgsListeners();
  frame.addEngines();
  if (System.getProperty(CONSOLE) == null) {
    ((LooksFrame)frame).getPt().init();
  }
  boolean binding=false;
  try {
    binding=server.start();
  }
 catch (  BindException b) {
    LOGGER.info("String_Node_Str" + configuration.getServerPort() + "String_Node_Str"+ b.getMessage());
    LOGGER.info("String_Node_Str");
  }
  new Thread("String_Node_Str"){
    @Override public void run(){
      try {
        Thread.sleep(7000);
      }
 catch (      InterruptedException e) {
      }
      if (foundRenderers.isEmpty()) {
        frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
      }
 else {
        frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
      }
    }
  }
.start();
  if (!binding) {
    return false;
  }
  if (proxy > 0) {
    LOGGER.info("String_Node_Str" + proxy);
    proxyServer=new ProxyServer(proxy);
  }
  if (configuration.getUseCache()) {
    initializeDatabase();
    mediaLibrary=new MediaLibrary();
    LOGGER.info("String_Node_Str" + server.getHost() + "String_Node_Str"+ server.getPort()+ "String_Node_Str");
  }
  getRootFolder(RendererConfiguration.getDefaultConf());
  frame.serverReady();
  Runtime.getRuntime().addShutdownHook(new Thread("String_Node_Str"){
    @Override public void run(){
      try {
        for (        ExternalListener l : ExternalFactory.getExternalListeners()) {
          l.shutdown();
        }
        UPNPHelper.shutDownListener();
        UPNPHelper.sendByeBye();
        LOGGER.debug("String_Node_Str");
        for (        Process p : currentProcesses) {
          try {
            p.exitValue();
          }
 catch (          IllegalThreadStateException ise) {
            LOGGER.trace("String_Node_Str" + p);
            ProcessUtil.destroy(p);
          }
        }
        get().getServer().stop();
        Thread.sleep(500);
      }
 catch (      InterruptedException e) {
        LOGGER.debug("String_Node_Str",e);
      }
    }
  }
);
  UPNPHelper.sendAlive();
  LOGGER.trace("String_Node_Str");
  Thread.sleep(250);
  UPNPHelper.listen();
  return true;
}

Fixed version (ground truth):
/** 
 * Initialisation procedure for PMS.
 * @return true if the server has been initialized correctly. false if the server couldnot be set to listen on the UPnP port.
 * @throws Exception
 */
private boolean init() throws Exception {
  AutoUpdater autoUpdater=null;
  VERSION=getVersion();
  if (Build.isUpdatable()) {
    String serverURL=Build.getUpdateServerURL();
    autoUpdater=new AutoUpdater(serverURL,getVersion());
  }
  registry=createSystemUtils();
  if (configuration.isRunWizard() && !isHeadless()) {
    int whetherToRunWizard=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),JOptionPane.YES_NO_OPTION);
    if (whetherToRunWizard == JOptionPane.YES_OPTION) {
      int numberOfQuestions=4;
      int currentQuestionNumber=1;
      int whetherToStartMinimized=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToStartMinimized == JOptionPane.YES_OPTION) {
        configuration.setMinimized(true);
        save();
      }
 else       if (whetherToStartMinimized == JOptionPane.NO_OPTION) {
        configuration.setMinimized(false);
        save();
      }
      int whetherToSendDTS=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToSendDTS == JOptionPane.YES_OPTION) {
        configuration.setDTSEmbedInPCM(true);
        save();
      }
 else       if (whetherToSendDTS == JOptionPane.NO_OPTION) {
        configuration.setDTSEmbedInPCM(false);
        save();
      }
      Object[] options={Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str")};
      int networkType=JOptionPane.showOptionDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,options,options[1]);
      if (networkType == JOptionPane.YES_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
 else       if (networkType == JOptionPane.NO_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
 else       if (networkType == JOptionPane.CANCEL_OPTION) {
        configuration.setMaximumBitrate("String_Node_Str");
        configuration.setMPEG2MainSettings("String_Node_Str");
        save();
      }
      int whetherToHideAdvancedOptions=JOptionPane.showConfirmDialog((Component)PMS.get().getFrame(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str") + "String_Node_Str" + (currentQuestionNumber++)+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str"+ numberOfQuestions,JOptionPane.YES_NO_OPTION);
      if (whetherToHideAdvancedOptions == JOptionPane.YES_OPTION) {
        configuration.setHideAdvancedOptions(true);
        save();
      }
 else       if (whetherToHideAdvancedOptions == JOptionPane.NO_OPTION) {
        configuration.setHideAdvancedOptions(false);
        save();
      }
      configuration.setRunWizard(false);
      save();
    }
 else     if (whetherToRunWizard == JOptionPane.NO_OPTION) {
      configuration.setRunWizard(false);
      save();
    }
  }
  if (System.getProperty(CONSOLE) == null) {
    frame=new LooksFrame(autoUpdater,configuration);
  }
 else {
    LOGGER.info("String_Node_Str");
    LOGGER.info("String_Node_Str");
    frame=new DummyFrame();
  }
  configuration.addConfigurationListener(new ConfigurationListener(){
    @Override public void configurationChanged(    ConfigurationEvent event){
      if ((!event.isBeforeUpdate()) && PmsConfiguration.NEED_RELOAD_FLAGS.contains(event.getPropertyName())) {
        frame.setReloadable(true);
      }
    }
  }
);
  frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
  proxy=-1;
  LOGGER.info("String_Node_Str" + PropertiesUtil.getProjectProperties().get("String_Node_Str") + "String_Node_Str"+ getVersion());
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str");
  String commitId=PropertiesUtil.getProjectProperties().get("String_Node_Str");
  String commitTime=PropertiesUtil.getProjectProperties().get("String_Node_Str");
  String shortCommitId=commitId.substring(0,9);
  LOGGER.info("String_Node_Str" + shortCommitId + "String_Node_Str"+ commitTime+ "String_Node_Str");
  logSystemInfo();
  String cwd=new File("String_Node_Str").getAbsolutePath();
  LOGGER.info("String_Node_Str" + cwd);
  LOGGER.info("String_Node_Str" + configuration.getTempFolder());
  LOGGER.info("String_Node_Str" + LoggingConfigFileLoader.getConfigFilePath());
  HashMap<String,String> lfps=LoggingConfigFileLoader.getLogFilePaths();
  if (lfps != null && lfps.size() > 0) {
    if (lfps.size() == 1) {
      Entry<String,String> entry=lfps.entrySet().iterator().next();
      LOGGER.info(String.format("String_Node_Str",entry.getKey(),entry.getValue()));
    }
 else {
      LOGGER.info("String_Node_Str");
      Iterator<Entry<String,String>> logsIterator=lfps.entrySet().iterator();
      Entry<String,String> entry;
      while (logsIterator.hasNext()) {
        entry=logsIterator.next();
        LOGGER.info(String.format("String_Node_Str",entry.getKey(),entry.getValue()));
      }
    }
  }
  LOGGER.info("String_Node_Str");
  LOGGER.info("String_Node_Str" + configuration.getProfileDirectory());
  String profilePath=configuration.getProfilePath();
  LOGGER.info("String_Node_Str" + profilePath);
  File profileFile=new File(profilePath);
  if (profileFile.exists()) {
    String permissions=String.format("String_Node_Str",FileUtil.isFileReadable(profileFile) ? "String_Node_Str" : "String_Node_Str",FileUtil.isFileWritable(profileFile) ? "String_Node_Str" : "String_Node_Str");
    LOGGER.info("String_Node_Str" + permissions);
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  LOGGER.info("String_Node_Str" + configuration.getProfileName());
  LOGGER.info("String_Node_Str");
  File dDir=new File(configuration.getDataDir());
  dDir.mkdirs();
  dbgPack=new DbgPacker();
  tfm=new TempFileMgr();
  OpenSubtitle.convert();
  tfm.schedule();
  RendererConfiguration.loadRendererConfigurations(configuration);
  LOGGER.info("String_Node_Str");
  if (Platform.isLinux()) {
    checkProcessExistence("String_Node_Str",true,null,"String_Node_Str" + configuration.getMplayerPath(),"String_Node_Str");
  }
 else {
    checkProcessExistence("String_Node_Str",true,null,configuration.getMplayerPath(),"String_Node_Str");
  }
  if (isWindows()) {
    checkProcessExistence("String_Node_Str",true,configuration.getTempFolder(),configuration.getMplayerPath(),"String_Node_Str");
  }
  LOGGER.info("String_Node_Str");
  if (registry.isAvis() && registry.getAvsPluginsDir() != null) {
    LOGGER.debug("String_Node_Str" + registry.getAvsPluginsDir().getAbsolutePath());
    File vsFilterDLL=new File(registry.getAvsPluginsDir(),"String_Node_Str");
    if (vsFilterDLL.exists()) {
      LOGGER.debug("String_Node_Str");
    }
 else {
      File vsFilterDLL2=new File(registry.getKLiteFiltersDir(),"String_Node_Str");
      if (vsFilterDLL2.exists()) {
        LOGGER.debug("String_Node_Str");
      }
 else {
        LOGGER.info("String_Node_Str");
      }
    }
  }
  String vlcVersion=registry.getVlcVersion();
  String vlcPath=registry.getVlcPath();
  if (vlcVersion != null && vlcPath != null) {
    LOGGER.info("String_Node_Str" + vlcVersion + "String_Node_Str"+ vlcPath);
    Version vlc=new Version(vlcVersion);
    Version requiredVersion=new Version("String_Node_Str");
    if (vlc.compareTo(requiredVersion) <= 0) {
      LOGGER.error("String_Node_Str");
    }
  }
  if (registry.isKerioFirewall()) {
    LOGGER.info("String_Node_Str");
  }
  File dvrsMsffmpegmuxer=new File("String_Node_Str");
  if (dvrsMsffmpegmuxer.exists()) {
    configuration.setFfmpegAlternativePath(dvrsMsffmpegmuxer.getAbsolutePath());
  }
  LogManager.getLogManager().readConfiguration(new ByteArrayInputStream("String_Node_Str".getBytes()));
  System.setErr(new PrintStream(new SystemErrWrapper(),true));
  server=new HTTPServer(configuration.getServerPort());
  try {
    ExternalFactory.lookup();
  }
 catch (  Exception e) {
    LOGGER.error("String_Node_Str",e);
  }
  PlayerFactory.initialize(configuration);
  ExternalFactory.instantiateLateListeners();
  Player.initializeFinalizeTranscoderArgsListeners();
  frame.addEngines();
  if (System.getProperty(CONSOLE) == null) {
    ((LooksFrame)frame).getPt().init();
  }
  boolean binding=false;
  try {
    binding=server.start();
  }
 catch (  BindException b) {
    LOGGER.info("String_Node_Str" + configuration.getServerPort() + "String_Node_Str"+ b.getMessage());
    LOGGER.info("String_Node_Str");
  }
  new Thread("String_Node_Str"){
    @Override public void run(){
      try {
        Thread.sleep(7000);
      }
 catch (      InterruptedException e) {
      }
      if (foundRenderers.isEmpty()) {
        frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
      }
 else {
        frame.setStatusCode(0,Messages.getString("String_Node_Str"),"String_Node_Str");
      }
    }
  }
.start();
  if (!binding) {
    return false;
  }
  if (proxy > 0) {
    LOGGER.info("String_Node_Str" + proxy);
    proxyServer=new ProxyServer(proxy);
  }
  if (configuration.getUseCache()) {
    initializeDatabase();
    mediaLibrary=new MediaLibrary();
    LOGGER.info("String_Node_Str" + server.getHost() + "String_Node_Str"+ server.getPort()+ "String_Node_Str");
  }
  getRootFolder(RendererConfiguration.getDefaultConf());
  frame.serverReady();
  Runtime.getRuntime().addShutdownHook(new Thread("String_Node_Str"){
    @Override public void run(){
      try {
        for (        ExternalListener l : ExternalFactory.getExternalListeners()) {
          l.shutdown();
        }
        UPNPHelper.shutDownListener();
        UPNPHelper.sendByeBye();
        LOGGER.debug("String_Node_Str");
        for (        Process p : currentProcesses) {
          try {
            p.exitValue();
          }
 catch (          IllegalThreadStateException ise) {
            LOGGER.trace("String_Node_Str" + p);
            ProcessUtil.destroy(p);
          }
        }
        get().getServer().stop();
        Thread.sleep(500);
      }
 catch (      InterruptedException e) {
        LOGGER.debug("String_Node_Str",e);
      }
    }
  }
);
  UPNPHelper.sendAlive();
  LOGGER.trace("String_Node_Str");
  Thread.sleep(250);
  UPNPHelper.listen();
  return true;
}