code: public TypeInstance addReturnAction( String returnActionName, AnnotationInstance annotation, TypeDeclaration outerType )
      {
          TypeInstance formBeanType = CompilerUtils.getTypeInstance( annotation, OUTPUT_FORM_BEAN_TYPE_ATTR, true );
          
          if ( formBeanType == null )
          {
              String memberFieldName = CompilerUtils.getString( annotation, OUTPUT_FORM_BEAN_ATTR, true );
              
              if ( memberFieldName != null )
              {
                  FieldDeclaration field = CompilerUtils.findField( outerType, memberFieldName );
                  if ( field != null ) formBeanType = field.getType();
              }
          }
          
          String formTypeName =
                  formBeanType != null && formBeanType instanceof DeclaredType
                  ? CompilerUtils.getDeclaration( ( DeclaredType ) formBeanType ).getQualifiedName()
                  : null;
          addReturnAction( returnActionName, formTypeName );
          return formBeanType;
      }
docs: Add a return-action from an annotation.
  @return the form bean type, or null</code> if there is no form bean.