Create the standard output configuration.

@return the configuration, never {@code null}.
@since 0.8
185118
@SuppressWarnings("static-method")
	protected OutputConfiguration createStandardOutputConfiguration() {
		final OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT);
		defaultOutput.setDescription(Messages.SarlOutputConfigurationProvider_0);
		defaultOutput.setOutputDirectory(SARLConfig.FOLDER_SOURCE_GENERATED);
		defaultOutput.setOverrideExistingResources(true);
		defaultOutput.setCreateOutputDirectory(true);
		defaultOutput.setCanClearOutputDirectory(false);
		defaultOutput.setCleanUpDerivedResources(true);
		defaultOutput.setSetDerivedProperty(true);
		defaultOutput.setKeepLocalHistory(false);
		return defaultOutput;
	}
725112
@Nonnull
    public String printLog4jEffectiveConfiguration() {
        try {
            StringWriter writer = new StringWriter();
            PropertyPrinter propertyPrinter = new PropertyPrinter(new PrintWriter(writer));
            propertyPrinter.print(new PrintWriter(writer));
            return writer.toString();
        } catch (RuntimeException e) {
            logger.warn("Exception generating log4j configuration", e);
            throw e;
        }
    }
1119514
@Override
    public Configuration configuration() {
    	if (this.origConfig != null) {
    		return this.origConfig;
    	} else {
            Configuration ans = new BaseConfiguration();
            ans.setProperty(DB_PATH_KEY, dbPath.toString());
            ans.setProperty(ALLOW_FULL_GRAPH_SCANS_KEY, allowFullGraphScans);
            ans.setProperty(DEFAULT_ISOLATION_LEVEL_KEY, defaultIsolationLevel.toString());
            ans.setProperty(TX_LOG_THRESHOLD_KEY, getTxLogThreshold());
            ans.setProperty(REORG_FACTOR_KEY, getReorgFactor());
            ans.setProperty(CREATE_DIR_IF_MISSING_KEY, createDirIfMissing);

            ans.setProperty(VERTEX_INDICES_KEY, String.join(",", getIndexedKeys(Vertex.class)));
            ans.setProperty(EDGE_INDICES_KEY, String.join(",", getIndexedKeys(Vertex.class)));

            return ans;
    	}
    }
733080
public String displayConfiguration() {
		StringBuffer result = new StringBuffer();

		for (ConfigurationManager confManager : ConfigurationService
				.getConfigurationService().getConfigurationManager().values()) {
			Object configuration = confManager.getConfiguration();
			StringWriter writer = new StringWriter();
			JAXB.marshal(configuration, writer);
			result.append(writer.getBuffer());
			result.append("\n");
		}
		;

		return result.toString();
	}
599417
public java.util.List<String> getConfigure() {
        if (configure == null) {
            configure = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return configure;
    }
53547
public Configuration getConfiguration() {
		if (configuration == null) {
			try {
				configuration = new PropertiesConfiguration(getClass().getResource("/nextserver.properties"));
			} catch (ConfigurationException e) {
				throw new RuntimeException(e);
			}
		}		
		return configuration;
	}
211889
public RedwoodConfiguration stdout(){
    LogRecordHandler visibility = new VisibilityHandler();
    LogRecordHandler console = Redwood.ConsoleHandler.out();
    return this
        .rootHandler(visibility)
        .handler(visibility, console);
  }
513536
public static Configuration getConfiguration() {
	    if(configuration == null){
            try {
                configuration = (Configuration) getContext().getBean("configuration");
            } catch (BeansException e) {
                LOGGER.error("Can't load config. Error: {}",e ,e);
            }
        }
	    return configuration;
	}
445570
public function createOutput()
    {
        if ($this->output === null) {
            $this->output = new ConsoleOutput();
            $this->output->getFormatter()->setStyle('b', new OutputFormatterStyle(null, null, ['bold']));
            $this->output->getFormatter()->setStyle('i', new OutputFormatterStyle('black', 'white'));
            $this->output->getFormatter()->setStyle('u', new OutputFormatterStyle(null, null, ['underscore']));
            $this->output->getFormatter()->setStyle('em', new OutputFormatterStyle(null, null, ['reverse']));
            $this->output->getFormatter()->setStyle('strike', new OutputFormatterStyle(null, null, ['conceal']));
            $this->output->getFormatter()->setStyle('success', new OutputFormatterStyle('green'));
            $this->output->getFormatter()->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
            $this->output->getFormatter()->setStyle('notice', new OutputFormatterStyle('yellow'));
            $this->output->getFormatter()->setStyle('info', new OutputFormatterStyle('white', null, ['bold']));
            $this->output->getFormatter()->setStyle('debug', new OutputFormatterStyle('white'));
        }

        return $this->output;
    }
123468
public Configuration build() {
		if (configuration.connector == null || configuration.address == null) {
			throw new IllegalArgumentException("You must call either withRemoteSocket or withSerialPort.");
		}
		return configuration;
	}
958215
public ConfigurationMetadataRepository build() {
        val result = new SimpleConfigurationMetadataRepository();
        for (val repository : this.repositories) {
            result.include(repository);
        }
        return result;
    }
411383
public static JavacConfig getLocalConfig()
  {
    JavacConfig config;

    config = _localJavac.get();

    if (config != null)
      return config;
    else
      return new JavacConfig();
  }
121323
public Path getFileOutputPath() {

		// TODO: This is a quick workaround, problem can be solved in a more generic way
		final Configuration conf = getEnvironment().getTaskConfiguration();

		final String outputPath = conf.getString("outputPath", null);

		if (outputPath != null) {
			return new Path(outputPath);
		}

		return null;
	}
1222746
private Configuration createDriverConfiguration(final Configuration driverConfiguration) {
    final ConfigurationBuilder configurationBuilder = Tang.Factory.getTang()
        .newConfigurationBuilder(driverConfiguration);
    for (final ConfigurationProvider configurationProvider : this.configurationProviders) {
      configurationBuilder.addConfiguration(configurationProvider.getConfiguration());
    }
    return configurationBuilder.build();
  }
695228
protected XMLStreamWriter createStreamWriter(OutputStream output) throws XMLStreamException {
        if (outputFactory == null) {
            outputFactory = XMLOutputFactory.newInstance();
        }
        return outputFactory.createXMLStreamWriter(output);
    }
1354521
private void createOutputFile() throws IOException {
        this.fileChannel = Files.newByteChannel(Paths.get(filePath), StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING);
    }
650285
public JspConfigType<WebAppDescriptor> getOrCreateJspConfig()
   {
      List<Node> nodeList = model.get("jsp-config");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new JspConfigTypeImpl<WebAppDescriptor>(this, "jsp-config", model, nodeList.get(0));
      }
      return createJspConfig();
   }