@ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
    public RegisteredService fetchService(@Selector final String id) {
        if (NumberUtils.isDigits(id)) {
            return this.servicesManager.findServiceBy(Long.parseLong(id));
        }
        return this.servicesManager.findServiceBy(id);
    }
@ ReadOperation ( produces = { ActuatorMediaType . V2_JSON , "application/vnd.cas.services+yaml" , MediaType . APPLICATION_JSON_VALUE } ) public RegisteredService fetchService ( @ Selector final String id ) { if ( NumberUtils . isDigits ( id ) ) { return this . servicesManager . findServiceBy ( Long . parseLong ( id ) ) ; } return this . servicesManager . findServiceBy ( id ) ; }
Fetch service either by numeric id or service id pattern.

@param id the id
@return the registered service