[Registry] Add comments and Javadoc.