code: public static void createAndRegister(OcAgentTraceExporterConfiguration configuration) {
      synchronized (monitor) {
        checkState(handler == null, "OC-Agent exporter is already registered.");
        OcAgentTraceExporterHandler newHandler =
            new OcAgentTraceExporterHandler(
                configuration.getEndPoint(),
                configuration.getServiceName(),
                configuration.getUseInsecure(),
                configuration.getSslContext(),
                configuration.getRetryInterval(),
                configuration.getEnableConfig());
        registerInternal(newHandler);
      }
    }
docs: Creates a {@code OcAgentTraceExporterHandler} with the given configurations and registers it to
  the OpenCensus library.
  
  @param configuration the {@code OcAgentTraceExporterConfiguration}.
  @since 0.20