}
@Override
public Object getValue(XmlObject xmlObject, XmlObject enclosing, String type, Bundle bundle) throws DeploymentException {
CSSCssType css;
if (xmlObject instanceof CSSCssType) {
css = (CSSCssType) xmlObject;
} else {
css = (CSSCssType) xmlObject.copy().changeType(CSSCssType.type);
}
try {
XmlBeansUtil.validateDD(css);
} catch (XmlException e) {
throw new DeploymentException("Error parsing CSS configuration", e);
}
CSSConfig cssConfig = new CSSConfig();
if (css.isSetCompoundSecMechTypeList()) {
CSSCompoundSecMechListConfig mechListConfig = cssConfig.getMechList();
mechListConfig.setStateful(css.getCompoundSecMechTypeList().getStateful());
CSSCompoundSecMechType[] mechList = css.getCompoundSecMechTypeList().getCompoundSecMechArray();
for (int i = 0; i < mechList.length; i++) {
mechListConfig.add(extractCompoundSecMech(mechList[i], bundle));
}
}