{
ArgUtil.notNull(new Object[] { prefs }, new String[] { "preferences" }, "resolve(java.util.prefs.Preferences)");
List list = new ArrayList();
Preferences preferences = prefs;
while ((preferences.parent() != null) && (preferences.parent().parent() != null))
{
list.add(preferences.absolutePath());
preferences = preferences.parent();
}
return (String[]) list.toArray(new String[0]);