code: private static Chain isKnownChain(String asymId, List<Chain> chains){
  
  		for (int i = 0; i< chains.size();i++){
  			Chain testchain =  chains.get(i);
  			//System.out.println("comparing chainID >"+chainID+"< against testchain " + i+" >" +testchain.getName()+"<");
  			if (asymId.equals(testchain.getId())) {
  				//System.out.println("chain "+ chainID+" already known ...");
  				return testchain;
  			}
  		}
  
  		return null;
  	}
docs: Test if the given asymId is already present in the list of chains given. If yes, returns the chain
  otherwise returns null.