code: public void setContainerConfigurationIndex(int newIndex) throws IndexOutOfBoundsException {
          if (newIndex < 0 || newIndex >= configList.size()) {
              throw new IndexOutOfBoundsException("Cannot change to the new index " + newIndex + " in the list of size " + configList.size());
          } else if (newIndex == configList.indexOf(containerConfiguration)) {
              // nothing to do
              return;
          }
          
          containerConfigurationChanged = true;
          configList.remove(containerConfiguration);
          configList.add(newIndex, containerConfiguration);
      }
docs: Change the position of the <em>container configuration</em> to a new index.
  
  @throws IndexOutOfBoundsException