}
public QProfileResult importXml(QualityProfileDto profileDto, String importerKey, String xml, DbSession dbSession) {
QProfileResult result = new QProfileResult();
ValidationMessages messages = ValidationMessages.create();
ProfileImporter importer = getProfileImporter(importerKey);
RulesProfile rulesProfile = importer.importProfile(new StringReader(xml), messages);
importProfile(profileDto, rulesProfile, dbSession);
processValidationMessages(messages, result);
return result;
}