Use static method call
Fix indention
Use getEffectiveUser() instead of getRealUser()

We should always user getEffectiveUser() instead of getRealUser() to make
sure our backend is proxy mode compatible.