@Override
	    public boolean canImport(TransferHandler.TransferSupport support) {
			if(!support.isDrop())
				return false;
			DialogNode selected;
			try {
				byte[] bytes = (byte[]) support.getTransferable().getTransferData(DialogNode.dmselFlavor);
				selected = DialogNode.readFromBytes(bytes);
			} catch (Exception e) {
				e.printStackTrace();
				return false;
			}
	        if(selected == null || selected.type != EnumNodeType.DIALOG)
	        	return false;
			JTree.DropLocation dl = (JTree.DropLocation)support.getDropLocation();
	        DialogNode node = (DialogNode) dl.getPath().getLastPathComponent();

	        return selected.getParent() != node && node.type == EnumNodeType.CATEGORY;
	    }