private void ensureNoAdminUsersWithEmptyPassword() throws SecureAdminCommandException { boolean isAdminUserWithoutPassword; try { isAdminUserWithoutPassword = secureAdminHelper.isAnyAdminUserWithoutPassword(); } catch (Exception ex) { throw new RuntimeException(ex); } if (isAdminUserWithoutPassword) { throw new SecureAdminCommandException(Strings.get("adminsWithEmptyPW")); } }