DomainDeploymentManagerImpl(final DomainClientImpl client) {
assert client != null : "client is null";
this.client = client;
this.contentDistributor = new DeploymentContentDistributor() {
@Override
public byte[] distributeDeploymentContent(String name, String runtimeName, InputStream stream)
throws IOException, DuplicateDeploymentNameException {
boolean unique = DomainDeploymentManagerImpl.this.client.isDeploymentNameUnique(name);
if (!unique) {