protected final void readRequest(final InputStream input) throws IOException {
final Unmarshaller unmarshaller = getUnmarshaller();
unmarshaller.start(createByteInput(input));
expectHeader(unmarshaller, StandaloneClientProtocol.PARAM_DEPLOYMENT_PLAN);
deploymentPlan = unmarshal(unmarshaller, DeploymentPlan.class);
unmarshaller.finish();
}
@Override
protected void sendResponse(final OutputStream output) throws IOException {
final Future<ServerDeploymentPlanResult> result = deploymentManager.execute(deploymentPlan);