anchor.diff:  
     METHOD delta_definition.
   
  -    DATA: ls_key     TYPE wdy_md_component_key,
  -          ls_obj_new TYPE svrs2_versionable_object,
  -          ls_obj_old TYPE svrs2_versionable_object.
  +    DATA: ls_key       TYPE wdy_md_component_key,
  +          lv_found     TYPE abap_bool,
  +          ls_obj_new   TYPE svrs2_versionable_object,
  +          li_component TYPE REF TO if_wdy_md_component,
  +          ls_obj_old   TYPE svrs2_versionable_object.
   
   
       ls_key-component_name = is_definition-definition-component_name.
   
  -    SELECT COUNT(*) FROM wdy_component
  -       WHERE component_name = ls_key-component_name.
  -    IF sy-subrc <> 0.
  -* create dummy if the component does not exist in system
  +    lv_found = cl_wdy_md_component=>check_existency( ls_key-component_name ).
  +    IF lv_found = abap_false.
         TRY.
  -          cl_wdy_md_component=>create_complete( ls_key-component_name ).
  +          cl_wdy_md_component=>create_complete(
  +            EXPORTING
  +              name      = ls_key-component_name
  +            IMPORTING
  +              component = li_component ).
  +          li_component->save_to_database( ).
  +          li_component->unlock( ).
           CATCH cx_wdy_md_exception.
             _raise 'error creating dummy component'.
         ENDTRY.
  
positive.code:     IF sy-subrc <> 0.
        _raise 'error from WDYC_GET_OBJECT'.
      ENDIF.
  
      READ TABLE lt_definition INDEX 1 INTO rs_controller-definition.
      IF sy-subrc <> 0.
  
negative.code:                        it_files = it_files ).
  
      lo_xml->structure_read( CHANGING cg_structure = ls_component ).
      lo_xml->table_read(
        EXPORTING
          iv_name  = 'COMPONENTS'
        CHANGING
          ct_table = gt_components ).
      lo_xml->table_read(
        EXPORTING
          iv_name  = 'SOURCES'
        CHANGING
          ct_table = gt_sources ).
  
      recover_definition( ls_component-comp_metadata ).
  
      LOOP AT ls_component-ctlr_metadata ASSIGNING <ls_controller>.
        recover_controller( <ls_controller> ).
      ENDLOOP.
      LOOP AT ls_component-view_metadata ASSIGNING <ls_view>.
        recover_view( <ls_view> ).
      ENDLOOP.
  
  * todo, activate
  
  