* @return corresponding item or null if not found.
*/
protected static MenuItem getItem(Object key, List catalog) {
Iterator iter = catalog.iterator();
while (iter.hasNext()) {
MenuItem item = (MenuItem) iter.next();
if (item.getLink().equals(key)) {
return item;
}
}
return null;