private void addAvailabilityGraph() {
if(lastResourceId.equals(resource.getId())) {
expandCollapseHLayout.removeMember(availabilityGraph);
availabilityGraph.destroy();
availabilityGraph = AvailabilityD3GraphView.create(new AvailabilityOverUnderGraphType(resource.getId()));
expandCollapseHLayout.addMember(availabilityGraph);
queryAvailability(EntityContext.forResource(resource.getId()), buttonBarDateTimeRangeEditor.getStartTime(),
buttonBarDateTimeRangeEditor.getEndTime(), null);