Consider the custom toString() implementation of a bean:
toString()
@Override public String toString() { String.format(\"this is %s\", this.someField); } <
You could just do
String.format("this is %s", (this.someField==null?"DEFAULT":this.someField));