private function createAndReturnNewSecondEntity($data, $secondEntityName)
    {
        /** @var EntityInterface $entity */
        $entity = $this->getSecondEntityByName($secondEntityName);
        if (is_array($data)) {
            return $this->mapAttributesFromFirstEntityToSecondEntityAndReturnEntity($data, $entity);
        }

        return null;
    }