import java.util.Map;\r
import java.util.UUID;\r
\r
+import javax.persistence.EntityNotFoundException;\r
+\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.stereotype.Service;\r
import org.springframework.transaction.annotation.Transactional;\r
}\r
\r
FeatureTree featureTree = load(uuid, rootPaths);\r
- dao.loadNodes(featureTree.getRoot(),nodePaths);\r
+ if(featureTree == null){\r
+ throw new EntityNotFoundException("No FeatureTree entity found for " + uuid);\r
+ }\r
+ dao.deepLoadNodes(featureTree.getRoot().getChildNodes() ,nodePaths);\r
return featureTree;\r
}\r
\r