anchor.diff:      CLASS-METHODS save
         IMPORTING is_app        TYPE wdy_application
                   it_properties TYPE wdy_app_property_table
  +                iv_package    TYPE devclass
         RAISING   lcx_exception.
   
   ENDCLASS.
  
positive.code:         li_app = cl_wdy_md_application=>get_object_by_key(
                     name    = lv_name
                     version = 'A' ).
        CATCH cx_wdy_md_not_existing .
          RETURN.
        CATCH cx_wdy_md_permission_failure .
          _raise 'WDYA, permission failure'.
      ENDTRY.
  
  
negative.code: 
    METHOD save.
  
      DATA: li_prop TYPE REF TO if_wdy_md_application_property,
            lo_app  TYPE REF TO cl_wdy_md_application.
  
      FIELD-SYMBOLS: <ls_property> LIKE LINE OF it_properties.
  
  
      TRY.
          CREATE OBJECT lo_app
            EXPORTING
              name       = is_app-application_name
              definition = is_app
              devclass   = iv_package.
  
          LOOP AT it_properties ASSIGNING <ls_property>.
            li_prop = lo_app->if_wdy_md_application~create_property( <ls_property>-name ).
            li_prop->set_value( <ls_property>-value ).
          ENDLOOP.
  
          lo_app->if_wdy_md_lockable_object~save_to_database( ).
        CATCH cx_wdy_md_exception.
          _raise 'error saving WDYA'.
      ENDTRY.
  
    ENDMETHOD.
  
  