You should be able to use [`omitNullValues`](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Objects.ToStringHelper.html#omitNullValues\(\)) to handle the null case. And I take it adminStateUp and state _can_ be null? Or not?