I came up with an idea how to implement the validation using the existing features, so I had simply modified the existing code in other to create another marshaller that will be configured with ValidationHander and used for validating the marshalled object.
I not sure if this is the most efficient solution, but based on my current opinion the simplest to implement.
The fact that each time a new marshaller completly seperate marshaller instance will be created also solved the potential problem with multithreaded environment.
I came up with an idea how to implement the validation using the existing features, so I had simply modified the existing code in other to create another marshaller that will be configured with ValidationHander and used for validating the marshalled object.
I not sure if this is the most efficient solution, but based on my current opinion the simplest to implement.
The fact that each time a new marshaller completly seperate marshaller instance will be created also solved the potential problem with multithreaded environment.