This is temporary code. It exists merely to discuss the problem we're talking about on the mailing list : I can't add this code without breaking deployment on EAP 6.1
I've added it just so that the project compiles and be able to run tests.