* @param db the database for which to obtain a connection
* @return the connection for the given database
*/
public Connection getConnection(DBDatabase db)
{
FacesApplication app = FacesUtils.getFacesApplication();
return app.getConnectionForRequest(FacesUtils.getContext(), db);
}