public static DatabaseKey createLegacyKey(UniversalId uidToUse) { DatabaseKey key = new DatabaseKey(uidToUse); key.setImmutable(); return key; }