}
if(btnSVGIcon == null){ //if there's no SVG icon for requested activity type, try to use the GIF image icon instead.
ImageIcon activityGifImageIcon = ActivityLabel.getImageIcon(activityCls);
if(activityGifImageIcon!=null)
btnSVGIcon = new IconWrapperResizableIcon(activityGifImageIcon);
}
if(btnSVGIcon == null){ //if there's no icon even, use default one.
URL defaultIconResourceUrl = getClass().getClassLoader().getResource(
ActivityLabel.getSVGIconPath(DefaultActivity.class));