Code example for ServletWebRequest

0
		request.setParameters(parameters.asMap()); 
 
		ServletRequestAttributes requestAttributes = new ServletRequestAttributes(request); 
		RequestContextHolder.setRequestAttributes(requestAttributes); 
 
		return new ServletWebRequest(request); 
	} 
 
	protected ResourceMetadata getMetadata(Class<?> domainType) { 
		return mappings.getMappingFor(domainType); 
	} 
 
	private static enum StubProjector implements Projector { 
 
		INSTANCE; 
 
		@Override 
		public Object project(Object source) { 
			return source; 
		}