In some business use cases, you have to pass JCR nodes from a front-end component to a back-end custom Adobe Experience Manager (AEM) custom service. For example, you can pass a Node object (for example, a currentNode in a JSP) to an AEM service (a javax.jcr.Node Java object) and use the JCR API to read its properties and perform application logic on the values. This development article walks you through how to pass a node object from a JSP to a custom service. The custom service uses the JCR API to read a property and pass back the value as the service's return value.
To read this development article, click https://helpx.adobe.com/experience-manager/using/passing_nodes.html.