I’m truing to get access to current user details on custom condition class. My class implements the com.atlassian.plugin.web.Condition and on shouldDisplay(Map<String, Object> context) context is see member currentUser. That is however typed com.atlassian.stash.internal.user.InternalNormalUser and the “internal” suggests me that I shouldn’t try to use that. I haven’t even checked whether I can include that, but I guess that’s not possible either.
So how should I get access the to the current user on the shouldDisplay() ?