code: private void storeEntityInformation(List<Chain> allChains, List<EntityInfo> entityInfos) {
  		for (EntityInfo entityInfo : entityInfos) {
  			String description = entityInfo.getDescription();
  			String type;
  			if (entityInfo.getType()==null){
  				type = null;
  			}
  			else{
  				type = entityInfo.getType().getEntityType();
  			}
  			List<Chain> entityChains = entityInfo.getChains();
  			if (entityChains.isEmpty()){
  				// Error mapping chain to entity
  				System.err.println("ERROR MAPPING CHAIN TO ENTITY: "+description);
  				mmtfDecoderInterface.setEntityInfo(new int[0], "", description, type);
  				continue;
  			}
  			else{
  				int[] chainIndices = new int[entityChains.size()];
  				for (int i=0; i<entityChains.size(); i++) {
  					chainIndices[i] = allChains.indexOf(entityChains.get(i));
  				}
  				Chain chain = entityChains.get(0);
  				ChainImpl chainImpl;
  				if (chain instanceof ChainImpl){
  					chainImpl = (ChainImpl) entityChains.get(0);
  				}
  				else{
  					throw new RuntimeException();
  				}
  				String sequence = chainImpl.getSeqResOneLetterSeq();
  				mmtfDecoderInterface.setEntityInfo(chainIndices, sequence, description, type);
  			}
  		}
  	}
docs: Store the entity information for a given structure.
  @param allChains a list of all the chains in a structure
  @param entityInfos a list of the entity information