private static final HttpMessageConverter<?> getHalConverter(List<MediaType> halFlavours) {

		ObjectMapper mapper = new ObjectMapper();
		mapper.registerModule(new Jackson2HalModule());
		mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

		MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();

		converter.setObjectMapper(mapper);
		converter.setSupportedMediaTypes(halFlavours);

		return converter;
	}
private static final HttpMessageConverter < ? > getHalConverter ( List < MediaType > halFlavours ) { ObjectMapper mapper = new ObjectMapper ( ) ; mapper . registerModule ( new Jackson2HalModule ( ) ) ; mapper . configure ( DeserializationFeature . FAIL_ON_UNKNOWN_PROPERTIES , false ) ; MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter ( ) ; converter . setObjectMapper ( mapper ) ; converter . setSupportedMediaTypes ( halFlavours ) ; return converter ; }
Creates a new {@link HttpMessageConverter} to support HAL.

@return