Correct behavior and javadocs in TagRegistry