Make the PersistedtResult be able to get entity object by command index