Code enhancement for Spring MVC