Switched repository's getLocal method to public visibility