public static < T > T findValue ( ServiceRegistry registry , ServiceName name ) { ServiceController < T > service = findService ( registry , name ) ; return ( ( service != null ) && ( service . getState ( ) == State . UP ) ) ? service . getValue ( ) : null ; }
Returns the value of the specified service if the service exists and is started .