public static String getPrefix(URI uri, ClassLoader classLoader) {
        if (uri == null && classLoader == null) {
            return null;
        } else {
            StringBuilder sb = new StringBuilder();
            if (uri != null) {
                sb.append(uri.toASCIIString()).append('/');
            }
            if (classLoader != null) {
                sb.append(classLoader.toString()).append('/');
            }
            return sb.toString();
        }
    }
public static String getPrefix ( URI uri , ClassLoader classLoader ) { if ( uri == null && classLoader == null ) { return null ; } else { StringBuilder sb = new StringBuilder ( ) ; if ( uri != null ) { sb . append ( uri . toASCIIString ( ) ) . append ( '/' ) ; } if ( classLoader != null ) { sb . append ( classLoader . toString ( ) ) . append ( '/' ) ; } return sb . toString ( ) ; } }
Gets the prefix of cache name without Hazelcast's {@link javax.cache.CacheManager}
specific prefix {@link com.hazelcast.cache.HazelcastCacheManager#CACHE_MANAGER_PREFIX}.

@param uri         an implementation specific URI for the
Hazelcast's {@link javax.cache.CacheManager} (null means use
Hazelcast's {@link javax.cache.spi.CachingProvider#getDefaultURI()})
@param classLoader the {@link ClassLoader}  to use for the
Hazelcast's {@link javax.cache.CacheManager} (null means use
Hazelcast's {@link javax.cache.spi.CachingProvider#getDefaultClassLoader()})
@return the prefix of cache name without Hazelcast's {@link javax.cache.CacheManager}
specific prefix {@link com.hazelcast.cache.HazelcastCacheManager#CACHE_MANAGER_PREFIX}