@Override
    protected StandaloneHerder createHerder(StandaloneConfig config, String workerId, Plugins plugins,
                                  ConnectorClientConfigOverridePolicy connectorClientConfigOverridePolicy,
                                  RestServer restServer, RestClient restClient) {

        OffsetBackingStore offsetBackingStore = new FileOffsetBackingStore(plugins.newInternalConverter(
                true, JsonConverter.class.getName(), Collections.singletonMap(JsonConverterConfig.SCHEMAS_ENABLE_CONFIG, "false")));
        offsetBackingStore.configure(config);

        Worker worker = new Worker(workerId, Time.SYSTEM, plugins, config, offsetBackingStore,
                connectorClientConfigOverridePolicy);

        return new StandaloneHerder(worker, config.kafkaClusterId(), connectorClientConfigOverridePolicy);
    }
Parse a connector configuration file into a {@link CreateConnectorRequest}. The file can have any one of the following formats (note that
we attempt to parse the file in this order):
<ol>
    <li>A JSON file containing an Object with only String keys and values that represent the connector configuration.</li>
    <li>A JSON file containing an Object that can be parsed directly into a {@link CreateConnectorRequest}</li>
    <li>A valid Java Properties file (i.e. containing String key/value pairs representing the connector configuration)</li>
</ol>
<p>
Visible for testing.

@param filePath the path of the connector configuration file
@return the parsed connector configuration in the form of a {@link CreateConnectorRequest}
connect/runtime/src/main/java/org/apache/kafka/connect/cli/ConnectStandalone.java