public static AbstractFactory getFactory(String choice) {

		// Java 8 can use Strings in switch.
		switch (choice) {
		case "COLOR":
			return new ColorFactory();
		case "SHAPE":
			return new ShapeFactory();
		default:
			return null;
		}
	}