Don't Repeat Yourself! Instead of hacking these lines again and again, just include this dependency and you're done!
Need to use a generic Range class but don't want to include rather huge all-inclusive libraries? Here is your solution: Simply add eu.headcrashing.treasure-chest:RangeClass as a dependency to your Maven POM descriptor!
You want JAXB to unmarshal singletons? You already spent lots of time coding rather complex workarounds applying XmlAdapters and afterUnmarshal callbacks? The solution is astonishingly simple!
Sometimes it makes sense to wrap a single code line into a class. An example is implementing the Range pattern.
A lot of applications these days title themselves RESTful. But how much REST is needed to be RESTful?