class ChangeAdminPasswordOnboardingItem extends ComponentSupport implements OnboardingItem {

  @Override
  public boolean applies() {
    try {
      User user = securitySystem.getUser("admin", UserManagerImpl.DEFAULT_SOURCE);
      return UserStatus.changepassword.equals(user.getStatus());
    }
    catch (UserNotFoundException e) {
      log.trace("admin user not found in system, marking onboarding item as not applicable.", e);
    }
    catch (NoSuchUserManagerException e) {
      log.trace("default UserManager not found in system, marking onboarding item as not applicable.", e);
    }

    return false;
  }

  @Inject public  ChangeAdminPasswordOnboardingItem(final SecuritySystem securitySystem);

}