// check type of endpoint
if (remaining.startsWith(HazelcastConstants.MAP_PREFIX)) {
// remaining is the cache name
remaining = removeStartingCharacters(remaining.substring(HazelcastConstants.MAP_PREFIX.length()), '/');
endpoint = new HazelcastMapEndpoint(hazelcastInstance, uri, remaining, this);
}
if (remaining.startsWith(HazelcastConstants.MULTIMAP_PREFIX)) {
// remaining is the cache name
remaining = removeStartingCharacters(remaining.substring(HazelcastConstants.MULTIMAP_PREFIX.length()), '/');