extract method to look up mapper for a session.