public static void invokeServiceAdded(ServiceConfig cfg, Service<?, ?> service) {
        requireNonNull(cfg, "cfg");
        requireNonNull(service, "service");

        try {
            service.serviceAdded(cfg);
        } catch (Exception e) {
            throw new IllegalStateException(
                    "failed to invoke serviceAdded() on: " + service, e);
        }
    }
public static void invokeServiceAdded ( ServiceConfig cfg , Service < ? , ? > service ) { requireNonNull ( cfg , "cfg" ) ; requireNonNull ( service , "service" ) ; try { service . serviceAdded ( cfg ) ; } catch ( Exception e ) { throw new IllegalStateException ( "failed to invoke serviceAdded() on: " + service , e ) ; } }
Invokes {@link Service#serviceAdded(ServiceConfig)}.