config = new UrlXmlConfig(configUrl);
} catch (IOException e) {
throw new ServletException(e);
}
}
<BUG>if (!isEmpty(instanceName)) {
config.setInstanceName(instanceName);</BUG>
return Hazelcast.getOrCreateHazelcastInstance(config);
<BUG>} else {
return Hazelcast.newHazelcastInstance(config);</BUG>
}

config = new UrlXmlConfig(configUrl);
} catch (IOException e) {
throw new ServletException(e);
