@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
// Query param named 'hazelcastInstance' (if exists) overrides the instance that was set
// programmatically and cancels local instance creation as well.
HazelcastInstance hzInstance = resolveAndRemoveReferenceParameter(parameters, "hazelcastInstance",
HazelcastInstance.class);
// Now we use the hazelcastInstance from compomnent
if (hzInstance == null) {
hzInstance = hazelcastInstance;
}