public static function getForm($name = '', array $options = array())
    {
        $returnValue = null;

        
		
		//use the right implementation (depending the render mode)
		//@todo refactor this and use a FormElementFactory
		switch(self::$renderMode){
			case 'xhtml':
				
				$myForm = new tao_helpers_form_xhtml_Form($name, $options);
				
				$myForm->setDecorators(array(
					'element'			=> new tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div')),
					'group'				=> new tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-group')),
					'error'				=> new tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-error')),
					'actions-bottom'	=> new tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar')),
					//'actions-top'		=> new tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar'))
				));
				
				$myForm->setActions(self::getCommonActions(), 'bottom');
				
				break;
			
			default: 
				throw new common_Exception("render mode {self::$renderMode} not yet supported");
		}
		
		$returnValue = $myForm;
		
        

        return $returnValue;
    }