private String convertExtIdAsHex(EventExtId extId) { return Hex.encodeHexString(extId.getExtId().getBytes(Charsets.US_ASCII)); }
private byte[] hashExtId(EventExtId extId) { HashCode hashCode = Hashing.sha1().hashString(extId.getExtId(), Charsets.US_ASCII); return hashCode.asBytes(); }