try {
mpw= manager.getMasterPassword();
String a1 = encodePasswordInA1Format(GeoServerUser.ROOT_USERNAME,
GeoServerSecurityManager.REALM, mpw);
return new UserDetailsPasswordWrapper(
GeoServerUser.createRoot(), a1);
}
finally {
if (mpw!=null)
manager.disposePassword(mpw);