Making generic resolve service