class TelemetryConverter {

    public Telemetry convert(TelemetryRequest request) {
        Telemetry telemetry = null;
        if (freeIpaTelemetryEnabled && request != null) {
            telemetry = new Telemetry();
            telemetry.setLogging(createLoggingFromRequest(request.getLogging()));
            telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures()));
            telemetry.setDatabusEndpoint(databusEndpoint);
            telemetry.setFluentAttributes(request.getFluentAttributes());
        }
        return telemetry;
    }

    public  TelemetryConverter(TelemetryConfiguration configuration,
            @Value("${freeipa.telemetry.enabled:true}") boolean freeIpaTelemetryEnabled);

}