When environment variable has boolean value then casting to Boolean to string fails.  Adding String.valueOf(value) to safely get string value without casting issue.