Mavenized version of the trident library from Kirill Grouchnikov.