EditBlackboard bb = handler.getEditBlackboard(handler.getEditLayer());
commands.getCommands().add(new DeselectEditGeomCommand(handler, bb.getGeoms()));
ShapeType shapeType = determineLayerType(handler);
CreateEditGeomCommand createEditGeomCommand = new CreateEditGeomCommand(bb, "newShape", shapeType); //$NON-NLS-1$
commands.getCommands().add(createEditGeomCommand);
commands.getCommands().add(EditUtils.instance.appendPathToShape(iter, shapeType, handler, bb, createEditGeomCommand.getShapeProvider()));
commands.getCommands().add( new SetCurrentGeomCommand(handler, createEditGeomCommand.getShapeProvider()));
commands.getCommands().add(handler.getCommand(handler.getAcceptBehaviours()));
commands.getFinalizerCommands().add( new SetEditStateCommand(handler, EditState.NONE));
return commands;
}finally{