@@ -0,0 +1,884 @@
+package org.skyscreamer.yoga.demo.test.controller;%0A%0Aimport org.skyscreamer.yoga.metadata.MetaDataService;%0Aimport org.skyscreamer.yoga.metadata.TypeMetaData;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0A@Controller%0A@RequestMapping(%22/metadata%22)%0Apublic class MetaDataController%0A%7B%0A   @Autowired%0A   MetaDataService metaDataService;%0A%0A   @RequestMapping(%22/%7Btype%7D%22)%0A   public TypeMetaData getTypeMetaData(@PathVariable(%22type%22) String type,%0A         HttpServletRequest request)%0A   %7B%0A      String uri = request.getRequestURI();%0A      String parts%5B%5D = uri.split( %22%5C%5C.%22 );%0A      return metaDataService.getMetaData( type, parts%5Bparts.length - 1%5D );%0A   %7D%0A%0A%7D%0A

Enable metadata for Spring MVC.