flumeCollector = injector.getInstance(NettyFlumeCollector.class);
appFabricServer = injector.getInstance(AppFabricServer.class);
logAppenderInitializer = injector.getInstance(LogAppenderInitializer.class);
metricsCollectionService = injector.getInstance(MetricsCollectionService.class);
datasetService = injector.getInstance(DatasetService.class);
<BUG>streamHttpService = injector.getInstance(StreamHttpService.class);
hiveMetastore = injector.getInstance(InMemoryHiveMetastore.class);
hiveServer = injector.getInstance(HiveServer.class);
boolean securityEnabled = configuration.getBoolean(Constants.Security.CFG_SECURITY_ENABLED);</BUG>
if (securityEnabled) {

flumeCollector = injector.getInstance(NettyFlumeCollector.class);
appFabricServer = injector.getInstance(AppFabricServer.class);
logAppenderInitializer = injector.getInstance(LogAppenderInitializer.class);
metricsCollectionService = injector.getInstance(MetricsCollectionService.class);
datasetService = injector.getInstance(DatasetService.class);
streamHttpService = injector.getInstance(StreamHttpService.class);
boolean exploreEnabled = configuration.getBoolean(Constants.Hive.EXPLORE_ENABLED,
Constants.Hive.DEFAULT_EXPLORE_ENABLED);
if (exploreEnabled) {
hiveMetastore = injector.getInstance(InMemoryHiveMetastore.class);
hiveServer = injector.getInstance(HiveServer.class);
}
boolean securityEnabled = configuration.getBoolean(Constants.Security.CFG_SECURITY_ENABLED);
if (securityEnabled) {
