public StormMetadataService build() throws ServiceNotFoundException, ServiceComponentNotFoundException { return new StormMetadataService(newHttpClient(), getTopologySummaryRestUrl(), getMainPageUrl(), securityContext, getServiceConfig(AMBARI_JSON_CONFIG_STORM_ENV), subject, getComponent(AMBARI_JSON_COMPONENT_STORM_NIMBUS), getComponentProcesses(AMBARI_JSON_COMPONENT_STORM_NIMBUS), getComponent(AMBARI_JSON_COMPONENT_STORM_UI_SERVER), getComponentProcesses(AMBARI_JSON_COMPONENT_STORM_UI_SERVER)); }