asManagedLatticeResourceOrNull