public Connection getConnection() {
	    Context context = null; 
	    try {
	      context = new InitialContext(); 
	      DataSource dataSource = (DataSource) context.lookup(JNDI_NAME); 
	      return dataSource.getConnection(); 
	    } catch (NamingException ex) { 
	      throw new DAOException(JNDI_NAME + " niet gevonden", ex);
	    } catch (SQLException ex) { 
	      throw new DAOException("kan geen connectie krijgen van " + JNDI_NAME, ex);
	    } finally {
	        try {
	          if (context != null) { 
	            context.close();
	          }
	        } catch (NamingException ex) {
	          throw new DAOException("kan " + JNDI_NAME + " niet sluiten",ex);
	      }
	    }
	  }