public synchronized boolean addRepositoryTarget(Target target) throws ConfigurationException {
CRepositoryTarget cnf = convert(target);
validate(cnf);
removeRepositoryTarget(cnf.getId(), true);
getCurrentConfiguration(true).add(cnf);
eventBus().post(new TargetRegistryEventAdd(this, target));
return true;
}