code: public static final InstanceType createDefaultInstanceType() {
  		final HardwareDescription hardwareDescription = HardwareDescriptionFactory.extractFromSystem();
  
  		int diskCapacityInGB = 0;
  		final String[] tempDirs = GlobalConfiguration.getString(ConfigConstants.TASK_MANAGER_TMP_DIR_KEY,
  			ConfigConstants.DEFAULT_TASK_MANAGER_TMP_PATH).split(File.pathSeparator);
  		
  		for (final String tempDir : tempDirs) {
  			if (tempDir != null) {
  				File f = new File(tempDir);
  				diskCapacityInGB = Math.max(diskCapacityInGB, (int) (f.getFreeSpace() / (1024L * 1024L * 1024L)));
  			}
  		}
  
  		final int physicalMemory = (int) (hardwareDescription.getSizeOfPhysicalMemory() / (1024L * 1024L));
  
  		return InstanceTypeFactory.construct("default", hardwareDescription.getNumberOfCPUCores(),
  			hardwareDescription.getNumberOfCPUCores(), physicalMemory, diskCapacityInGB, 0);
  	}
docs: Creates a default instance type based on the hardware characteristics of the machine that calls this method. The
  default instance type contains the machine's number of CPU cores and size of physical memory. The disc capacity
  is calculated from the free space in the directory for temporary files.
  
  @return the default instance type used for the local machine