anchor.diff:      TRY.
           li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
   
  -* Check that is is realy a BAdI
  -        IF li_spot_ref->get_tool( ) = cl_enh_tool_badi_def=>tooltype.
  -          rv_bool = abap_true.
  -        ELSE.
  -          rv_bool = abap_false.
  -        ENDIF.
  +        lv_tool = li_spot_ref->get_tool( ).
  +        CASE lv_tool.
  +          WHEN cl_enh_tool_badi_def=>tooltype.
  +            rv_bool = abap_true.
  +          WHEN OTHERS.
  +* todo: implement additional tool types
  +            rv_bool = abap_false.
  +        ENDCASE.
         CATCH cx_enh_root.
           rv_bool = abap_false.
       ENDTRY.
  
positive.code:         "get subsequent BADI definitions
          lt_enh_badi = lo_badidef_tool->get_badi_defs( ).
  
          io_xml->add( ig_data = lv_parent
                       iv_name = 'PARENT_COMP' ).
          io_xml->add( ig_data = lv_enh_shtext
  
negative.code:                      iv_name = 'BADI_DATA' ).
  
        CATCH cx_enh_root INTO lx_root.
          lcx_exception=>raise( `Error occured while serializing EHNS: `
            && lx_root->get_text( ) ) ##NO_TEXT.
      ENDTRY.
  
    ENDMETHOD.  "serialize
  