file: using try with resources
file: renaming Register -> Registry
file: removing old Register
file: removing unused imports
file: Javadoc update
file: removing unused imports