Implement default methods for Registry.
Some workarounds for JaCoCo issues with Java 8.