}
protected Connector instantiateConnector( Component component ) {
try {
// Instantiate the connector and set the 'name' field ...
Connector connector = component.createInstance(getClass().getClassLoader());
// Set the repository name field ...
ReflectionUtil.setValue(connector, "repositoryName", repository.name());
// Set the logger instance
ReflectionUtil.setValue(connector, "logger", Logger.getLogger(connector.getClass()));
// Set the logger instance
ReflectionUtil.setValue(connector, "simpleLogger", ExtensionLogger.getLogger(connector.getClass()));
// We'll initialize it later in #intialize() ...
return connector;
} catch (Throwable t) {
if (t.getCause() != null) {