+ * Starts to insert the given project. The insert will be made to the node
+ * stored in the project, and if no node is specified in the project, the
+ * given node will be used.
+ *
+ * @param project
+ * The project to insert
+ * @param node
+ * The node to insert the project to if the project does not
+ * specify a node
+ */
+ public void insertProject(Project project, Node node) {
+ logger.log(Level.FINEST, "insertProject(project=" + project + ",node=" + node + ")");
+ Node insertNode = project.getNode();
+ if (insertNode == null) {
+ insertNode = node;
+ if (insertNode == null) {
+ throw new NullPointerException("node must not be null");
+ }
+ }
+ String insertId = "insert-" + project.getId();
+ Insert newInsert = new Insert(project, insertNode, insertId);
+ inserts.put(insertId, newInsert);
+ fireInsertAdded(newInsert);
+ /* TODO - start insert */
+ }
+
+ /**