public Recipe openFile(File f) {

		fileType = checkFileType(f);
		Debug.print("File type: " + fileType);

		if (fileType.equals("promash")) {
			PromashImport imp = new PromashImport();
			myRecipe = imp.readRecipe(f);
		} else if (fileType.equals("sb") || fileType.equals("qbrew")) {
			ImportXml imp = new ImportXml(f.toString(), "recipe");
			myRecipe = imp.handler.getRecipe();
		} else if (fileType.equals("beerxml")) {
			ImportXml imp = new ImportXml(f.toString(), "beerXML");
			myRecipe = imp.beerXmlHandler.getRecipe();
			recipes = imp.beerXmlHandler.getRecipes();
		} else {
			// unrecognized type, just return a new blank recipe
			myRecipe = new Recipe();
		}

		return myRecipe;

	}