sessionDescriptor.addInjection("mailServers", serversDescriptor);
return sessionDescriptor;
}
protected Descriptor parsePattern(Element patternElement, Parse parse, Parser parser) {
PatternDescriptor patternDescriptor =
new PatternDescriptor(XmlUtil.getContentText(patternElement));
// literal
String literalAttr = XmlUtil.attribute(patternElement, "literal");
if (literalAttr != null) {
Boolean literal = XmlUtil.parseBooleanValue(literalAttr);
if (literal != null) patternDescriptor.setLiteral(literal);
}
// canonEq
String canonEqAttr = XmlUtil.attribute(patternElement, "canonEq");
if (canonEqAttr != null) {
Boolean canonEq = XmlUtil.parseBooleanValue(canonEqAttr);
if (canonEq != null) patternDescriptor.setCanonEq(canonEq);
}
return patternDescriptor;
}