[JBWS-3733]:Allow enabling/disabling endpoint metrics;Always add EndpointMetrics in EndpointService;Check if it's enabled directly with ServerConfigService