@RequestMapping(method = RequestMethod.GET)
  public HttpEntity<Resources<AutoscaledAppResource>> getAutoscaledApps() throws Exception {

    List<String> autoscaledAppNames =
        autoscalingManager.getAppNames().get(10, TimeUnit.MILLISECONDS);
    List<AutoscaledAppResource> result =
        new ArrayList<AutoscaledAppResource>(autoscaledAppNames.size());
    Collection<Link> links = new ArrayList<Link>();
    links.add(linkTo(AutoscaledAppController.class).withSelfRel());

    for (String appName : autoscaledAppNames) {
      AutoscaledAppResource ar = new AutoscaledAppResource(appName);
      ar.add(linkTo(AutoscaledAppController.class).slash(appName).withSelfRel());
      ar.add(linkTo(AutoscaledAppController.class).slash(appName).slash("rules").withRel("rules"));
      links.add(linkTo(AutoscaledAppController.class).slash(appName).withRel("autoscaledApp"));
      result.add(ar);
    }
    return new HttpEntity<Resources<AutoscaledAppResource>>(
        new Resources<AutoscaledAppResource>(result, links));
  }