Set uri-template  to release. and Remove redirect code. This was already handled by urlconnection