changing way of setting consumer key in servlet