private Preferences getRepositoryPrefs(Preferences userPrefs, URL location, String customer, String name) { Preferences repoPref = userPrefs.node(location.getAuthority() + location.getPath()); Preferences customerPref = repoPref.node(customer); return customerPref.node(name); }