Get branch from context not session.