* one level higher. So we stop one level earlier, the units are
* not imported at the moment.
* @throws URISyntaxException
*/
public ObjectiveTree loadFreeMindObjectiveTree(InputStream in, boolean hasUnits, boolean hasLeaves) {
MindMap map = loadFreeMindMap(in);
if (map != null) {
// traverse temp structure of map and nodes and create ObjectiveTree
ObjectiveTree tree = new ObjectiveTree();
tree.setRoot(map.getObjectiveTreeRoot(hasUnits, hasLeaves));
if (tree.getRoot().isLeaf()) {
return null;
}
return tree;
}