public function generate()
    {
        $filePath = '';
        $formName = Inflector::classify($this->formCommand->tableName);

        if (file_exists($this->getFormTemplatePath().'Form'.EXT)) {
            //We will generate Form Component
            $formContent = file_get_contents($this->getFormTemplatePath().'Form'.EXT);
        } else {
            die("Form template doesn't exists in ".$this->getFormTemplatePath().'Form'.EXT.' directory.');
        }

        $this->controllerInstance->isFormGenerator = true;
        $this->controllerInstance->updateTemplate();
        $this->controllerInstance->setControllerName($formName);
        $this->controllerInstance->setApplicationDirectory(realpath(CYGNITE_BASE.DS.APPPATH));
        $formContent = str_replace('%controllerName%', $formName, $formContent);
        $formContent = str_replace('{%formElements%}', $this->controllerInstance->getForm().PHP_EOL, $formContent);

        $this->controllerInstance->generateFormComponent($formContent);
    }