protected void sendResponse(final OutputStream outputStream) throws IOException {
ByteDataOutput output = null;
try {
output = new SimpleByteDataOutput(outputStream);
output.writeByte(DomainClientProtocol.PARAM_DEPLOYMENT_NAME_UNIQUE);
output.writeBoolean(domainController.isDeploymentNameUnique(deploymentName));
} finally {
safeClose(output);
}
}
}