@Override @SuppressWarnings("unchecked") public void draw(final D diagram, final ParameterizedCommand<CommandResult> loadCallback) { if (null == this.canvas) { throw new IllegalStateException("No handled canvas instance."); } this.diagram = diagram; // Initialize the graph handler that provides processing and querying operations over the graph. buildGraphIndex(() -> loadRuleSet(() -> draw(loadCallback))); }