For a field that is from a relationship and that currently has focus,
event.getSource().getDataProviderID()
returns a value in the following format:
relationship_name.field_name
Is it possible to programatically get the table name instead of the relationship name?