333334335336337338339340341342343
switch( restRequest.getMethod() ) { case GET : return new ExtendedGetMethod(); case HEAD : return new ExtendedHeadMethod(); case DELETE : return new ExtendedDeleteMethod(); case PUT : return new ExtendedPutMethod(); case OPTIONS :