userRepository.add(admin);
}
transaction.commit();
} catch (final Exception e) {
if (transaction.isActive()) {
transaction.rollback();
}
LOGGER.log(Level.SEVERE, "Upgrade admin fail.", e);
throw new ServletException("Upgrade fail from v021 to v025");
}
}