}
int id = Integer.parseInt(resourceTable.getItem(resourceTable.getValue()).getItemProperty("ResourceID").toString());
BookingDAO bd = df.getBookingDAO();
try {
System.out.printf("projectid:%d, resourceid:%d\n", project.getProjectID(), id);
bd.insertBookings(project.getProjectID(), id, tm);
} catch (DAOException e) {
me.getApplication().getMainWindow().showNotification("Database Error!");
e.printStackTrace();
} catch (RatioOutOfBoundsException e) {