Determine Browser type using java action?

Hey guys, Im trying to determine the clients browser type when they come to the site im building. I want to know if there is an easy way for me to get the UserAgent info? im to call : String com.mendix.systemwideinterfaces.core.ISession.getUserAgent ( ) ; however i cant seem to get this to work. am i missing an import of somekind? or a jar file perhaps? would it be easier to use a javascript function to set a value on the account object? any help would be great :)
1 answers

I have not tested this but should be as simple as doing:

String userAgent = getContext().getSession().getUserAgent();

in your Java action.