}
// ==
protected Target convert(CRepositoryTarget target) {
ContentClass contentClass = getContentClassById(target.getContentClass());
// If content class is null, we have a target for a repo type that no longer exists
// plugin was removed most likely, so we ignore in this case
if (contentClass != null) {
return new Target(target.getId(), target.getName(), contentClass, target.getPatterns());