}
if (remaining.startsWith(HazelcastConstants.QUEUE_PREFIX)) {
// remaining is anything (name it foo ;)
remaining = removeStartingCharacters(remaining.substring(HazelcastConstants.QUEUE_PREFIX.length()), '/');
endpoint = new HazelcastQueueEndpoint(hazelcastInstance, uri, this, remaining);
}
if (remaining.startsWith(HazelcastConstants.SEDA_PREFIX)) {
final HazelcastSedaConfiguration config = new HazelcastSedaConfiguration();
setProperties(config, parameters);