Add GetRepository method.