src/main/java/com/helger/genericode/Genericode10Helper.java
@Nullable
  public static Key getKeyOfID (@Nonnull final ColumnSet aColumnSet, @Nullable final String sID)
  {
    if (sID != null)
      for (final Key aKey : getAllKeys (aColumnSet))
        if (aKey.getId ().equals (sID))
          return aKey;
    return null;
  }
@Nullable
  public static Key getKeyOfID (@Nonnull final ColumnSet aColumnSet, @Nullable final String sID)
  {
    if (sID != null)
      for (final Key aKey : getAllKeys (aColumnSet))
        if (aKey.getId ().equals (sID))
          return aKey;
    return null;
  }
Get the key with the specified ID.

@param aColumnSet
The column set to scan. May not be <code>null</code>.
@param sID
The ID to search. May be <code>null</code>.
@return <code>null</code> if no such key exists.