Getting the project the a given file belongs to

ProjectManager pm=getInstance()
// then use java.util.Iterator getProjects();
// and foreach project use VPTNode node=prj.getChildNode(java.lang.String path);