/** * Gets the administrator. * * @return administrator, returns {@code null} if not found * @throws ServiceException service exception */ public JSONObject getAdmin() throws ServiceException { try { return userRepository.getAdmin(); } catch (final RepositoryException e) { LOGGER.log(Level.ERROR, "Gets admin failed", e); throw new ServiceException(e); } }