Paula, Oracle java is notoriously finnicky when it comes to returning text. If you know the specific field that you are looking to return the data from, you could instead get the text property of that control.
Such as (in VBA):
If JavaEditBox("Name=Address").Text = "expected text" Then
UserCheck MyCustomCheck, True, "The Expected text was found"
UserCheck MyCustomCheck, False, "The Expected text was NOT found"
Visual tests have a feature called a validation that allows similar behavior in fewer steps.