If any one is interested, just wanted to share.
We can create the traits as he same way we did in the clientcontext.
Only we need to replace the trait value check with the js object to the ContextHub.getStore('StoreNAme').getTree() and add all the values what you were looking for.
If anyone needs the ed implementation using the triats, contexthub.segments and resolving the teaser, please do let me know.
I can share the details.