You can use the oae.api.util generateId instead.