code: private String getSubsystem(final CommandLineLinkerConfiguration linkerConfig) {
      String subsystem = "0";
      final String[] args = linkerConfig.getPreArguments();
      for (final String arg : args) {
        if ("/SUBSYSTEM:CONSOLE".equals(arg)) {
          subsystem = "1";
        }
        if ("/SUBSYSTEM:WINDOWS".equals(arg)) {
          subsystem = "2";
        }
        if ("/SUBSYSTEM:WINDOWSCE".equals(arg)) {
          subsystem = "9";
        }
      }
      return subsystem;
    }
docs: Get value of Subsystem property.
  
  @param linkerConfig
  linker configuration.
  @return value of Subsystem property