Hi,you are asking about content fragments, it is something re-using of content while authoring. it is not something to achieve by code.Adobe Experience Manager Help | Working with Adobe Experience Manager Content Fragments and as scott stated, you should use the HTL and Java to access the JCR. you c...