}
private static String getApplicationIconURL(ContentDefinition contentDef) {
Customization customization = contentDef.getCustomization();
if (customization != null) {
ContentType type = customization.getType();
String contentId = customization.getContentId();
if (type == Portlet.CONTENT_TYPE) {
String[] chunks = contentId.split("/");
if (chunks.length == 2) {
return "/" + chunks[0] + "/skin/DefaultSkin/portletIcons/" + chunks[1] + ".png";