code: public static String encodeIconUrl( String name, String version, File iconFile ) {
  
  		StringBuilder sb = new StringBuilder();
  		if( iconFile != null ) {
  			sb.append( "/" );
  			sb.append( name );
  			if( ! Utils.isEmptyOrWhitespaces( version ))
  				sb.append( "/" + version );
  
  			sb.append( "/" );
  			sb.append( iconFile.getName());
  		}
  
  		return sb.toString();
  	}
docs: <i>Encodes</i> the URL for an application or a template.
  <p>
  For an application, it looks like <code>/app/icon.jpg</code>.<br>
  For a template, it looks like <code>/app/version/icon.jpg</code>.
  </p>
  <p>
  Notice the returned image is not always a JPG file.
  The MIME type will be used by the browser.
  </p>
  
  @param name the application or template name
  @param version the template version, or null for an application
  @param iconFile the icon file associated with the application or the template
  @return the empty string if iconFile is null, or a longer path otherwise