* @param portletId the portlet's id to seek
* @return the found portlets description or null
*/
public static Portlets getPortletsById(Portlets portlets, String portletId)
{
Portlets entry = portlets;
if ( (entry.getId()!=null) && entry.getId().equals(portletId) )
{
return entry;
}
entry = null;
for (Iterator it2 = portlets.getPortletsIterator(); it2.hasNext(); )
{
Portlets p = (Portlets) it2.next();
entry = getPortletsById(p, portletId);
if (entry != null) break;
}