{
RequestCycle requestCycle = RequestCycle.get();
String name = requestCycle.getMetaData(KEY);
if (name == null)
{
WebClientInfo clientInfo;
name = getVersion2();
if (Session.exists())
{
WebSession session = WebSession.get();
clientInfo = session.getClientInfo();
}
else
{
clientInfo = new WebClientInfo(requestCycle);
}
ClientProperties clientProperties = clientInfo.getProperties();
if (clientProperties.isBrowserInternetExplorer() && clientProperties.getBrowserVersionMajor() < 9)
{
name = getVersion1();
}