if (index > limit) {
if (index >= limit) {
	public static void createLink(			final String linkType,			final MatrixTreeNode[] children,			final MatrixTreeNode parent,			final int index,			final int prevIndex) {		final String[] assetids = new String[] { parent.getAsset().getId() };		AssetRefreshWorker worker = new AssetRefreshWorker(assetids, true) {			public Object construct() {				try {					int newIndex = index;					int limit = AssetManager.getLimit();					// we need to change the index since we are not on the first set					if (index > limit) {						// move the asset to the next set						newIndex = parent.getAsset().getTotalKidsLoaded() + limit + children.length - 1;					} else if (index <= 0) {						// move the asset to previous set						newIndex = parent.getAsset().getTotalKidsLoaded() - children.length;					} else {						// move the asset to different index on the same set						newIndex = parent.getAsset().getTotalKidsLoaded() + index;						if (parent.getAsset().getTotalKidsLoaded() > 0) {							// we have a previous node							newIndex--;						}					}					Boolean refresh = doLinkRequest(						linkType,						children,						parent,						newIndex					);					if (refresh == Boolean.TRUE) {						String parentid = parent.getAsset().getId();						return AssetManager.makeRefreshRequest(assetids, "");					}				} catch (IOException ioe) {					return ioe;				}				return null;			}			public void finished() {				// if we need to refresh the parent, call super to do so				if (get() != null)					super.finished();				else					MatrixStatusBar.setStatusAndClear(Matrix.translate("asset_map_status_bar_success"), 1000);			}		};		worker.start();	}