Transaction txn = hazelcastInstance.getTransaction();
txn.begin();
try {
endpointMap.put(endpointURI, endpoint);
endpointOwners.put(localMemberAddr, endpointURI);
txn.commit();
} catch (Throwable e) {
txn.rollback();
throw new ServiceRuntimeException(e);
}
localEndpoints.put(endpointURI, endpoint);