Restore clear method to AbstractRegistry.