Included code for ServiceProvider and ApiAdapter.