code: private static Chain isKnownChain(String chainID, List<Chain> chains){
  
  		for (int i = 0; i< chains.size();i++){
  			Chain testchain =  chains.get(i);
  			if (chainID.equals(testchain.getName())) {
  				return testchain;
  			}
  		}
  
  		return null;
  	}
docs: Finds in the given list of chains the first one that has as name the given chainID.
  If no such Chain can be found it returns null.