Node myNode = appendChild(parent, nodeName);
if (descriptor.getSessionTimeout() != descriptor.SESSION_TIMEOUT_DEFAULT) {
appendTextChild(myNode, WebTagNames.SESSION_TIMEOUT,
String.valueOf(descriptor.getSessionTimeout()));
}
CookieConfigDescriptor cookieConfigDesc = (CookieConfigDescriptor)descriptor.getCookieConfig();
if (cookieConfigDesc != null) {
CookieConfigNode cookieConfigNode = new CookieConfigNode();
cookieConfigNode.writeDescriptor(myNode, WebTagNames.COOKIE_CONFIG,
cookieConfigDesc);
}