{
throw new IllegalArgumentException('"' + rs + "\".length != 2");
}
try
{
final CardRankType rank = CardRankType.fromChar(rs.charAt(0));
final CardRankSuit suit = CardRankSuit.fromChar(rs.charAt(1));
return Card.getInstance(rank, suit);
}
catch (final IllegalArgumentException e)
{