"No profile with the name " + profileName +
" was registered");
}
Repository repo = profile.getRepository();
XMLOutputter outputter = new XMLOutputter();
Format format = Format.getPrettyFormat();
format.setExpandEmptyElements(true);
outputter.setFormat(format);
String html = outputter.outputString(doc);
StringTokenizer tokenizer = new StringTokenizer(html, "@", true);
StringBuilder resultHtml = new StringBuilder();
boolean tokenFound = false;