Consider the custom toString() implementation of a bean:
toString()
@Override public String toString() { String.format(\"this is %s\", this.someField); } <
To keep the original value of someField (in case null is a valid value), you can use a ternary operator.
someField
String.format("This is %s", (this.someField == null ? "unknown" : this.someField));