Set and Get methods added to middleware classes