##### SUMMARY Extract some client utils functions in reusable function, to be used in the inventory plugin.