Made shortReference generation in a serializeable transaction