Repository: added getBy() method