We have the need to create a custom AEM component that is able to trigger a save to the JCR programmatically (in the location of the page that is being edited). When building a custom AEM Component, you don't need to call the 'save' logic manually, you just add a <content>
tag, and AEM will automatically add the content to the JCR when saving the dialog.
How can manually trigger the same save operation that would be executed when clicking the 'save' button on the custom AEM Component?