util-moduleloader/src/main/java/com/hpe/caf/util/ModuleLoader.java
public static <T> T getService(final Class<T> intf)
        throws ModuleLoaderException
    {
        return getService(intf, null);
    }
public static <T> T getService(final Class<T> intf)
        throws ModuleLoaderException
    {
        return getService(intf, null);
    }
public static < T > T getService ( final Class < T > intf ) throws ModuleLoaderException { return getService ( intf , null ) ; }
Determine the first advertised service implementation for the specified interface. The implementations are advertised via the Java
"ServiceLoader" mechanism.

@param intf the interface to find an advertised service implementation for
@param <T> the interface
@return an advertised implementation of intf of type T
@throws ModuleLoaderException if there is no advertised implementation available
Determine the first advertised service implementation for the specified interface . The implementations are advertised via the Java ServiceLoader mechanism .