@jkburges Not able to get this to work. 
params becomes a LinkedHashMap in the function and resource plugin is not happy with this. Tried HashMap, Object, ConfigObject.
If i could unpick what resouce plugin expected?