public ResolvedGlobalId fromGlobalId(String globalId) { String[] split = Base64.fromBase64(globalId).split(":", 2); return new ResolvedGlobalId(split[0], split[1]); }
public String toGlobalId(String type, String id) { return Base64.toBase64(type + ":" + id); }