Avoid "The value of param status.bar.text must be a valid Java Object" errors.