<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1494009119313_3142">Hello Team,</div><div id="yui_3_16_0_ym19_1_1494009119313_3142"><br></div><div id="yui_3_16_0_ym19_1_1494009119313_3142">I am writing custom code for my installation and adding it to midpoint as a dependency.  The following is where i am:</div><div id="yui_3_16_0_ym19_1_1494009119313_3142"><br></div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">I have a configured resource - oid: myResourceOid, name: myResourceName</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">My code has a listner that receives user created events. An event contains identifier (key column value) of the account in the resource.</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">Now this code has to call midpoint to import/modify/delete the account.</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">I could not find a solid example to do this in the documentation.  I am not sure how to instantiate or call the service beans in midpoint's spring context.</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">Can anybody please guide / help me use Java API to accomplish this?</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">Thanks,</div><div id="yui_3_16_0_ym19_1_1494009119313_3142" dir="ltr">Prabhakar.</div></div></body></html>