Okay.. maybe i've understood... So....
Style cs = new Style();
// Now output of the chat message:
And what goes inside setStyle?
Since that time I changed my code a lot so structure registration is finally working properly.
Only things that I still have problem with are setting structure placing config and adding this structure to world. Here is my function where all those stuff are done.