code: private static void parseSessionConfig(final SessionConfigType sessionConfigType, final WebApp webApp) {
  		// Fix for PAXWEB-201
  		if (sessionConfigType.getSessionTimeout() != null) {
  			webApp.setSessionTimeout(sessionConfigType.getSessionTimeout().getValue().toString());
  		}
  		if (sessionConfigType.getCookieConfig() != null) {
  			CookieConfigType cookieConfig = sessionConfigType.getCookieConfig();
  			WebAppCookieConfig sessionCookieConfig = new WebAppCookieConfig();
  			if (cookieConfig.getDomain() != null) {
  				sessionCookieConfig.setDomain(cookieConfig.getDomain().getValue());
  			}
  			if (cookieConfig.getHttpOnly() != null) {
  				sessionCookieConfig.setHttpOnly(cookieConfig.getHttpOnly().isValue());
  			}
  			if (cookieConfig.getMaxAge() != null) {
  				sessionCookieConfig.setMaxAge(cookieConfig.getMaxAge().getValue().intValue());
  			}
  			if (cookieConfig.getName() != null) {
  				sessionCookieConfig.setName(cookieConfig.getName().getValue());
  			}
  			if (cookieConfig.getPath() != null) {
  				sessionCookieConfig.setPath(cookieConfig.getPath().getValue());
  			}
  			if (cookieConfig.getSecure() != null) {
  				sessionCookieConfig.setSecure(cookieConfig.getSecure().isValue());
  			}
  
  			webApp.setSessionCookieConfig(sessionCookieConfig);
  		}
  		if (sessionConfigType.getTrackingMode() != null) {
  			List<TrackingModeType> trackingMode = sessionConfigType.getTrackingMode();
  			for (TrackingModeType trackingModeType : trackingMode) {
  				String value = trackingModeType.getValue();
  				webApp.addSessionTrackingMode(value);
  			}
  		}
  	}
docs: Parses session config out of web.xml.
  
  @param sessionConfigType session-configType element from web.xml
  @param webApp            model for web.xml