Fixes #52 - note that in place I used ->{session} ( being an EPrints Plugin) - on 3.3 it should be ->repository but we want to be compatible with 3.2 where ->repository doesn't exist