code: public static CacheManager getCacheManager(HazelcastInstance instance, String uriString, Properties props) {
          URI uri = null;
          if (uriString != null) {
              try {
                  uri = new URI(uriString);
              } catch (URISyntaxException e) {
                  throw rethrow(e);
              }
          }
          if (instance instanceof HazelcastClientProxy) {
              return HazelcastClientCachingProvider.createCachingProvider(instance).getCacheManager(uri, null, props);
          } else {
              return HazelcastServerCachingProvider.createCachingProvider(instance).getCacheManager(uri, null, props);
          }
      }
docs: Creates a {@link CacheManager} on an existing HazelcastInstance.
  
  @param uriString Scope of {@link CacheManager}
  @param instance  Hazelcast instance that created {@link CacheManager} is connected.
  @param props     Extra properties to be passed to cache manager. If {@code props} contain hazelcast.instance.name
  it overrides {@code instance} parameter
  @return the created {@link CacheManager}