throws ConnectorValidationFailedException {
ConnectorInstanceFactory factory = getConnectorFactoryForDescription(description);
Connector current = instances.get(id);
Map<String, String> validationErrors = factory.getValidationErrors(current, description.getAttributes());
if (!validationErrors.isEmpty()) {
throw new ConnectorValidationFailedException(validationErrors);
}
doUpdateAttributes(id, description, factory, current);
}