BeanDirectory targetDir = null;
if (path == null) {
targetDir = CampaignClient.getInstance().getRootDirectory();
} else {
DocumentNode node = (DocumentNode) path.getLastPathComponent();
if (node.getUserObject().isDirectory()) {
targetDir = (BeanDirectory) node.getUserObject();
} else {
UniqueID dirBean = node.getUserObject().getParent();
targetDir = CampaignClient.getInstance().getBean(dirBean);
}
}
BeanDirectory previousDir = CampaignClient.getInstance().getBean(