public static Client getClientById(long id) {
        Client ClientHolder = null;
        Session session = null;
        try {
            session = HibernateUtil.getSessionFactory().openSession();
            ClientHolder = (Client) session.get(Client.class, id);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (session != null && session.isOpen()) {
                session.close();
            }
        }
        return ClientHolder;
    }