code: public static ConnectionParams fromConfig(ConfigParams config, boolean configAsDefault) {
  		List<ConnectionParams> connections = manyFromConfig(config, configAsDefault);
  		return connections.size() > 0 ? connections.get(0) : null;
  	}
docs: Retrieves a single ConnectionParams from configuration parameters from
  "connection" section. If "connections" section is present instead, then is
  returns only the first connection element.
  
  @param config          ConnectionParams, containing a section named
  "connection(s)".
  @param configAsDefault boolean parameter for default configuration. If "true"
  the default value will be added to the result.
  @return the generated ConnectionParams object.
  
  @see #manyFromConfig(ConfigParams, boolean)