helper function to get Cubex Request object