String contentString = response.contentString();
String language = (String)_language.valueInComponent(wocontext.component());
Pattern pattern = Pattern.compile("\\s*language\\s*=\\s*\"?" + language + "\"?", Pattern.CASE_INSENSITIVE);
contentString = pattern.matcher(contentString).replaceFirst("");
response.setContent(contentString);
response.popContent(true);
}
else {
super.appendAttributesToResponse(woresponse, wocontext);
}
}