code: public static void save( File f, Application app ) throws IOException {
  
  		Properties properties = new Properties();
  		if( ! Utils.isEmptyOrWhitespaces( app.getDisplayName()))
  			properties.setProperty( APPLICATION_NAME, app.getDisplayName());
  
  		if( ! Utils.isEmptyOrWhitespaces( app.getDescription()))
  			properties.setProperty( APPLICATION_DESCRIPTION, app.getDescription());
  
  		if( app.getTemplate() != null ) {
  			if( ! Utils.isEmptyOrWhitespaces( app.getTemplate().getName()))
  				properties.setProperty( APPLICATION_TPL_NAME, app.getTemplate().getName());
  
  			if( ! Utils.isEmptyOrWhitespaces( app.getTemplate().getVersion()))
  				properties.setProperty( APPLICATION_TPL_VERSION, app.getTemplate().getVersion());
  		}
  
  		Utils.writePropertiesFile( properties, f );
  	}
docs: Saves an application descriptor.
  @param f the file where the properties will be saved
  @param app an application (not null)
  @throws IOException if the file could not be written