public boolean tryMap(int from, int to) {
if (IndicesUtils.getNameWithType(to) != toName)
return false;
if ((IndicesUtils.getStateInt(from) != IndicesUtils.getStateInt(to)) != ((states & 0x4) == 0x4))
// if (CC.getRegim() == Context.Regim.NORMAL)
throw new InconsistentIndicesException(from);
if ((states & (1 << IndicesUtils.getStateInt(to))) != 0)
if (CC.getRegim() == Context.Regim.NORMAL)
throw new InconsistentIndicesException(to);
states |= 1 << IndicesUtils.getStateInt(to);
return true;
}