code: private String chooseClientAliasForKey(String preferredAlias, String keyType, Principal[] issuers, Socket socket)
  	{
  		String[] aliases = getClientAliases(keyType, issuers);
  
  		if (aliases != null && aliases.length > 0) {
  			for (int i=0; i<aliases.length;i++) {
  				if (preferredAlias.equals(aliases[i])) {
  					return aliases[i];
  				}
  			}
  		}
  		return null;
  	}
docs: Attempts to find a keystore
  @param keyType
  @param issuers
  @param socket
  @return