this method should be renamed to fromSession perhaps

also can it be made package private? I don't remember why it was public in the first place