&& packaging != null)
{
Iterator ite = portletApplications.iterator();
while (ite.hasNext())
{
PortletApplication portletApp = (PortletApplication) ite.next();
if (groupId.equals(portletApp.getGroupId())
&& artifactId.equals(portletApp.getArtifactId())
&& version.equals(portletApp.getVersion())
&& packaging.equals(portletApp.getPackaging()))
{
return portletApp;
}
}
}