Never use static calls. Get the session object from the container instead.