Use Boolean.TRUE.equals(x) instead of x==Boolean.TRUE

Should do this because `new Boolean(true) == Boolean.TRUE` is false; calling a constructor *always* returns a new object so will fail the `==` comparison.