} else {
// Decide if we will generate binary WMLC from the headers
willGenerateWMLC = appContext.isWMLCSupported();
// If we want to do WMLC but the config says do WML, then do WML
if (willGenerateWMLC) {
ProtocolsConfiguration protocols =
context.getVolantisBean().getProtocolsConfiguration();
if (protocols.getPreferredOutputFormat() ==
WMLOutputPreference.WML) {
if (logger.isDebugEnabled()) {
logger.debug("Device supports WMLC but disabling " +
"due to wml configuration setting.");
}