protected function mapEntity($form, $entity, $property)
    {
        if (false === $property) {
            return;
        }

        if (true === $property) {
            $mapEntity = $entity;
        } elseif ($entity->hasProperty($property) || is_callable([$entity, "get$property"])) {
            $getter = "get$property";
            $mapEntity = $entity->$getter();
        } else {
            return;
        }
        if ($form instanceof Container) {
            $form->setEntity($mapEntity);
        } else {
            $form->bind($mapEntity);
        }
    }