ProfileExporter exporter = findExporter(exporterKey);
QualityProfileDto profile = loader.getByKey(profileKey);
if (profile == null) {
throw new NotFoundException("Unknown Quality profile: " + profileKey);
}
exporter.exportProfile(wrap(profile), writer);
}
/**
* Only for ruby on rails
*/