code: public static File findIcon( File rootDirectory ) {
  
  		File result = null;
  		File[] imageFiles = new File( rootDirectory, Constants.PROJECT_DIR_DESC ).listFiles( new ImgeFileFilter());
  		if( imageFiles != null ) {
  
  			// A single image? Take it...
  			if( imageFiles.length == 1 ) {
  				result = imageFiles[ 0 ];
  			}
  
  			// Otherwise, find the "application." file
  			else for( File f : imageFiles ) {
  				if( f.getName().toLowerCase().startsWith( "application." ))
  					result = f;
  			}
  		}
  
  		return result;
  	}
docs: Finds an icon from a root directory (for an application and/or template).
  @param rootDirectory a root directory
  @return an existing file, or null if no icon was found