Javadoc improvements.
Throw exception if class is not registered.