public function getFormLabel($domain=null)
    {
        $form = $this->getForm();
        $translationDomain = !is_null($domain) ? $domain : 'forms';
        $translator = $form->getTranslator();

        $id = $form->getName();
        if ($form instanceof FormCollectionInterface) {
            if (!is_int($this->getEntityContainer()->getName())) {
                $id .= '.' . $this->getEntityContainer()->getName();
            }
        }
        $id .= '.' . $this->getName();

        return $translator->trans($id, array(), $translationDomain);
    }