public function generateEntity($entity, array $data)
    {
        $handlers = $this->getHandlers();

        if (isset($handlers[$entity]['mapping']) && isset($handlers[$entity]['pattern'])) {
            $data += array('placeholders' => $handlers[$entity]['mapping']);
            return $this->generate($handlers[$entity]['pattern'], $data);
        }

        return null;
    }