@AddLinks
 @LinkResource
 @GET
 public LayoutsXml listAllLayouts(@Context HttpServletRequest req) {
   LayoutsXml layoutsXml = layoutsPool.getAvailableLayouts();
   return layoutsXml;
 }
 @AddLinks
 @LinkResource
 @GET
 @Path("/{id}")
 public LayoutXml getLayout(@Context HttpServletRequest req, @PathParam("id") String id) {
   for (LayoutXml l : layoutsPool.getAvailableLayouts().getLayouts()) {
     if (l.getId().equals(id)) {
       return l;
     }
   }
   throw new WebgephiWebException(
       Response.Status.NOT_FOUND, "Lazout function " + id + " does not exist");
 }