/**
* Perform the actual import.
*/
@Override
public boolean importData(TransferSupport info) {
UniqueID data = verifyDrop(info);
if (data != null) {
JTree target = (JTree) info.getComponent();
BeanBasicDocument docToMove = CampaignClient.getInstance().getBean(
data);
Point p = info.getDropLocation().getDropPoint();
TreePath path = target.getPathForLocation(p.x, p.y);
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(