Changed DependencyHandler to use a try with resources.
Removed unnecessary semicolon
Added class stubs for Restrictions API