this.contentDistributor = new DeploymentContentDistributor() {
@Override
public byte[] distributeDeploymentContent(String name, String runtimeName, InputStream stream)
throws IOException, DuplicateDeploymentNameException {
if (ServerDeploymentManagerImpl.this.serverConfiguration.getDeployment(name) != null) {
throw new DuplicateDeploymentNameException(name, false);
}
return getDeploymentRepository().addDeploymentContent(name, runtimeName, stream);
}
@Override
public byte[] distributeReplacementDeploymentContent(String name, String runtimeName, InputStream stream)