Add missing javadoc.
Use the new configuration implementation instead of stub.
Introduce builder for rgistry.