added getter for realm

An extending class might want to override 'beforeMethod'. There it needs to have read access to the 'realm'.