static Mode fromString(String string)
    {
        switch (string.toLowerCase())
        {
            case "zip":
                return ZIP;
            case "zipandwrap":
                return ZIPANDWRAP;
            case "unwrap":
                return UNWRAP;
            default:
                return null;
        }
    }