Changed the MappedContainer.isValidIndex(List,int) method to be public and static so that it can be reused.