Camel-Box : Get BoxItem insted of GetFolder or GetFile
I am using Camel-box and I have a situation where I have some id, but i don't know the object. I don't know if this id belongs to a File or Folder.
So I want to create a route to get BoxItem with the given itemId.
How do you solve this ?
I need something like this but for BoxItem.
.log("********* GETTING FOLDER *********")
.setHeader("CamelBox.path", method(folderService, "getPath"))