package gvs.business.model.graph;

import java.util.Observable;

import com.google.inject.Singleton;

@Singleton
public class CurrentGraphHolder extends Observable {

  private Graph currentGraph;
  
  public void setCurrentGraph(Graph newGraph) {
    this.currentGraph = newGraph;
    setChanged();
    notifyObservers();
  }

  /**
   * Returns current session, which is held by the model
   * 
   * @return session controller
   */
  public Graph getCurrentGraph() {
    return currentGraph;
  }
  
}

@@ -69,183 +69,464 @@
 ort 
-com.google.inject.Singleton;%0A%0A@Singleton%0Apublic class CurrentGraphHolder extends Observable %7B%0A%0A  private Graph currentGraph;%0A  %0A  public void setCurrentGraph(Graph newGraph) %7B
+org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport com.google.inject.Singleton;%0A%0A%0Aimport gvs.business.logic.graph.GraphSessionController;%0A%0A@Singleton%0Apublic class CurrentGraphHolder extends Observable %7B%0A%0A  private Graph currentGraph;%0A%0A  private static final Logger logger = LoggerFactory%0A      .getLogger(CurrentGraphHolder.class);%0A  %0A  public void setCurrentGraph(Graph newGraph) %7B%0A    logger.info(%22Setting current graph and notifying observers.%22);
 %0A   

add logger