private HttpRequestBase buildRequest(Method method,URI uri){
switch (method) {
case GET:
    return new HttpGet(uri);
default :
  throw new UnsupportedOperationException("Unsupported method:  " + method);
}
}

private HttpRequestBase buildRequest ( Method method , URI uri ) { switch ( method ) { case GET : return new HttpGet ( uri ) ; default : throw new UnsupportedOperationException ( "Unsupported method:  " + method ) ; } }
build the proxied request .
