128129130131132133134135136137138
} catch (IOException e) { throw new CloudException("Error serializing data", e); } StateNode node = parentNode.child(Long.toHexString(id)); if (!node.create(data)) { continue; } return (T) built; }
9899100101102103104105106107108
T built = (T) toMessage(item); ByteString data = built.toByteString(); if (!node.create(data)) { throw new DuplicateValueException(); } return built; }