configMap.put("color", color);
if (password != null) {
configMap.put("password", password);
}
Configuration config = new Configuration("TestConnector", configMap, null);
StoreContext context = new StoreContext(name, "TestConnector");
pstore.storeConnectorConfiguration(context, config);
Schedule schedule = new Schedule(name, false, 100, 300000, "0-0");
pstore.storeConnectorSchedule(context, schedule);
pstore.storeConnectorState(context, name + " checkpoint");
}