dc(dcOptional); Optional<String> tokenOptional = instance.getToken(); if (tokenOptional.isPresent()) { token(tokenOptional);
@Override public final Map<String, Object> toQuery() { Map<String, Object> result = new HashMap<>(); optionallyAdd(result, "dc", getDc()); optionallyAdd(result, "cas", getCas()); optionallyAdd(result, "acquire", getAcquire()); optionallyAdd(result, "release", getRelease()); optionallyAdd(result, "token", getToken()); return result; } }