// ArrayList trees=new ArrayList();
// HierarchyUtils.extractParents(children,trees);
int childCount=p.getChildCount();
if (position>childCount){
NodeFactory nodeFactory=NodeFactory.getInstance();
Node node=nodeFactory.createVoidNode();
for (int i=childCount;i<position;i++){
setSubprojectLevel(node,subprojectLevel);
p.add(node);
}
}