Problem: added a getDomain() method