@Override
public byte[] distributeDeploymentContent(String name, String runtimeName, InputStream stream)
throws IOException, DuplicateDeploymentNameException {
boolean unique = DomainDeploymentManagerImpl.this.client.isDeploymentNameUnique(name);
if (!unique) {
throw new DuplicateDeploymentNameException(name, false);
}
return DomainDeploymentManagerImpl.this.client.addDeploymentContent(stream);
}
@Override
public byte[] distributeReplacementDeploymentContent(String name, String runtimeName, InputStream stream)