[TxMt] useful java snippets to share