* create a new database session
* @throws Exception
*/
public void createNewSession() throws Exception
{
configuration = new AnnotationConfiguration();
configuration.setProperty("hibernate.connection.url", "jdbc:postgresql://" + this.url + ":" + port + "/" + this.dbname);
configuration.setProperty("hibernate.connection.username", this.username);
configuration.setProperty("hibernate.connection.password", this.password);
this.sessionFactory = configuration.configure().buildSessionFactory();
this.session = this.sessionFactory.getCurrentSession();