Create findRecord method (remove code duplication)