Traverse through nodes and consume data into Sling Model
I have an asset in /content/dam/myproject/<assetFile> the hierarchy being :

I will get the path of the image from dialog and I have injected the same in the sling model.
@586265
private String imagePath My ultimate aim is to traverse to the metadata node and get a certain property from there.
Can someone please help me with the Java code for that? Also please let me know how I will get that data into frontend via HTL.
Thanks!