@Override public Map<String, Object> getBareCredentialsMap() { return credentials.getCredentialsMap(); }
@Override public Map<String, Object> createCredentialsMap(UUID instanceId) { Map<String, Object> credentialsCopy = new HashMap<>(credentials.getCredentialsMap()); credentialsCopy.put(ZNODE_KEY, String.format("%s/%s", userspacePathTemplate, instanceId)); return credentialsCopy; }