code: @RequestMapping(value = GET_CURRENT_DEPLOYMENT_URL, method = RequestMethod.GET)
      public ResponseEntity<Deployment> getCurrentDeployment(@PathVariable(ENV_PATH_VAR_NAME) String env,
                                                             @PathVariable(SITE_NAME_PATH_VAR_NAME) String siteName)
          throws DeployerException {
          Target target = targetService.getTarget(env, siteName);
          Deployment deployment = target.getCurrentDeployment();
  
          return new ResponseEntity<>(deployment,
                                      RestServiceUtils.setLocationHeader(new HttpHeaders(), BASE_URL + GET_CURRENT_DEPLOYMENT_URL,
                                                                         env, siteName),
                                      HttpStatus.OK);
      }
docs: Gets the current deployment for a target.
  
  @param env       the target's environment
  @param siteName  the target's site name
  
  @return the pending and current deployments for the target
  
  @throws DeployerException if an error occurred