code: public static Observable<ComapiChatClient> initialise(@NonNull final Application app, @NonNull final ChatConfig chatConfig) {
  
          final FoundationFactory factory = chatConfig.getFoundationFactory();
          final EventsHandler eventsHandler = factory.getAdaptingEventsHandler();
          final CallbackAdapter adapter = chatConfig.getComapiCallbackAdapter();
  
          return factory.getClientInstance(app, chatConfig)
                  .map(client -> {
                      ComapiChatClient chatClient = new ComapiChatClient(app, client, chatConfig, eventsHandler, adapter);
                      ClientHelper.addLifecycleListener(client, chatClient.createLifecycleListener(new WeakReference<>(chatClient)));
                      return chatClient;
                  });
      }
docs: Initialise and build SDK client.