It looks like you could get nearly the same result with
MethodContext.getContext().mbean.getUserName()
though this returns null rather than EMPTY_STRING when the user is not known.
It looks like you could get nearly the same result with
MethodContext.getContext().mbean.getUserName()
though this returns null rather than EMPTY_STRING when the user is not known.