}
if (remaining.startsWith(HazelcastConstants.INSTANCE_PREFIX)) {
// remaining is anything (name it foo ;)
remaining = removeStartingCharacters(remaining.substring(HazelcastConstants.INSTANCE_PREFIX.length()), '/');
endpoint = new HazelcastInstanceEndpoint(hazelcastInstance, uri, this);
}
if (remaining.startsWith(HazelcastConstants.QUEUE_PREFIX)) {
// remaining is anything (name it foo ;)
remaining = removeStartingCharacters(remaining.substring(HazelcastConstants.QUEUE_PREFIX.length()), '/');