Added a getRepository helper method