final LongPollingConnectionManager longPolling = buildLongPolling();
ChangeManager changeMgr = buildChangeManager();
MasterChangeManager masterChangeMgr = buildMasterChangeManager();
final ConnectionManagerImpl connectionMgr = new ConnectionManagerImpl(changeMgr, masterChangeMgr, longPolling);
AggregatorNamesResource aggregatorsResource = new AggregatorNamesResource(getPortfolioAggregationFunctions().getMappedFunctions().keySet());
MarketDataSnapshotListResource snapshotResource = new MarketDataSnapshotListResource(getMarketDataSnapshotMaster());
MasterConfigSource configSource = new MasterConfigSource(getConfigMaster());
AggregatedViewDefinitionManager aggregatedViewDefManager =
new AggregatedViewDefinitionManager(getPositionSource(),
getSecuritySource(),