ValidationResult res = tag.validate(HEADER_STYLES_SCHEMA);
if (res.hasError()) {
throw new LicenseManagerException("Style definition at '" + styleLocation + "' is not valid: " + res.getErrorMessages()[0]);
}
final String ns = tag.getPefix("http://mycila.com/license/styles/1.0");
tag.forEachChild(new CallBack() {
public void execute(XMLTag doc) {
Builder builder = add(doc.getAttribute("name"))
.defineBegining(doc.getTextOrCDATA("%1$s:definition/%1$s:begining", ns))
.defineStartLine(doc.getTextOrCDATA("%1$s:definition/%1$s:startLine", ns))
.defineEnding(doc.getTextOrCDATA("%1$s:definition/%1$s:ending", ns))