Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.