response = new ContentRangeResponseWrapper(request, response);
response.setContentType(DP_MIMETYPE);
// determine the deployment processor early, as to avoid having to create a complete deployment package in
// case of a missing/incorrect requested processor...
DeploymentProcessor deploymentProcessor = getDeploymentProcessor(request);
// get the input stream to the deployment package...
InputStream inputStream = getDeploymentPackageStream(targetID, version, request, versions);
// process and send back the results to the client...
deploymentProcessor.process(inputStream, request, response);
}
catch (IllegalArgumentException e) {
throw (AceRestException) new AceRestException(HttpServletResponse.SC_BAD_REQUEST, "Request URI is invalid").initCause(e);
}
catch (IOException e) {