@RequestMapping(value = "/active", method = RequestMethod.GET)
  public List<ClientAppDeploymentModel> getActive() {
    List<ClientAppDeployment> cDeploys = clientAppDeploymentService.getActiveDeployment();

    if (cDeploys != null && cDeploys.size() > 0) {
      List<ClientAppDeploymentModel> models = new ArrayList<ClientAppDeploymentModel>();
      for (ClientAppDeployment c : cDeploys) {
        ClientAppAnswer cAns = appAnswerService.getClientAppAnswer(c.getClientAppID());
        ClientApp cApp = appService.findClientAppByID("clientAppID", c.getClientAppID());
        if (cAns != null && cApp != null) {
          ClientAppDeploymentModel aModel =
              new ClientAppDeploymentModel(
                  c.getDeploymentID(),
                  c.getClientAppID(),
                  cAns.getAnswer(),
                  cApp.getName(),
                  cApp.getAppType());
          models.add(aModel);
        }
      }
      return models;
    }

    return null;
  }
 @RequestMapping(value = "/active/type/{typeID}", method = RequestMethod.GET)
 public ClientAppDeploymentModel getActiveByType(@PathVariable("typeID") Integer typeID) {
   ClientAppDeployment deploy = clientAppDeploymentService.getActiveDeploymentForAppType(typeID);
   if (deploy != null) {
     ClientAppAnswer cAns = appAnswerService.getClientAppAnswer(deploy.getClientAppID());
     ClientApp cApp = appService.findClientAppByID("clientAppID", deploy.getClientAppID());
     if (cAns != null && cApp != null) {
       ClientAppDeploymentModel aModel =
           new ClientAppDeploymentModel(
               deploy.getDeploymentID(),
               deploy.getClientAppID(),
               cAns.getAnswer(),
               cApp.getName(),
               cApp.getAppType());
       return aModel;
     }
   }
   return null;
 }