ezp-21977 modification of getLocal() method and tests