code: public void setCacheManager(CacheManager cacheManager) {
          com.stormpath.sdk.cache.CacheManager stormpathCacheManager =
                  new ShiroCacheManager(cacheManager);
          this.clientBuilder.setCacheManager(stormpathCacheManager);
      }
docs: Uses the specified Shiro {@link CacheManager} instance as the Stormpath SDK Client's CacheManager, allowing both
  Shiro and Stormpath SDK to share the same cache mechanism.
  <p/>
  If for some reason you don't want to share the same cache mechanism, you can explicitly set a Stormpath SDK-only
  {@link com.stormpath.sdk.cache.CacheManager CacheManager} instance via the
  {@link #setStormpathCacheManager(com.stormpath.sdk.cache.CacheManager) setStormpathCacheManager} method.
  
  @param cacheManager the Shiro CacheManager to use for the Stormpath SDK Client's caching needs.
  @since 0.4.0
  @see #setStormpathCacheManager(com.stormpath.sdk.cache.CacheManager)