Node color based on UserData in tree

I’m using the coldfusion connector to get the data for a tree.
I want to have the value off the field “IsStaff” define the color of the node.
How would i do something like that?

I solved this using beforeRender function