/**
   * Updating an environment
   *
   * @param pkEenvironment primary key of the environment
   * @param description description of the environment
   * @param environment value of the environment
   */
  public void updateEnvironment(Long pkEnvironment, String description, String environment) {
    sessionFactory = HibernateUtil.configureSessionFactory();
    session = sessionFactory.openSession();
    tx = session.beginTransaction();

    query = session.createQuery("from Environment e where e.pkEnvironment =" + pkEnvironment);
    Environment env = (Environment) query.uniqueResult();
    env.setDescription(description);
    env.setEnvironmentName(environment);

    session.persist(env);
    tx.commit();
    session.close();
  }