public DeploymentListener deploymentListener() {
initializeZooKeeperConnection();
StreamFactory streamFactory = new StreamFactory(streamDefinitionRepository, moduleRegistry,
moduleOptionsMetadataResolver);
JobFactory jobFactory = new JobFactory(jobDefinitionRepository, moduleRegistry,
moduleOptionsMetadataResolver);
return new DeploymentListener(zooKeeperConnection, moduleDeployer, containerAttributes, jobFactory,
streamFactory);
}