onBootstrap(): dependence on request resource, so that baseUrl is properly initialized