Uses object pool for selecting entities by parameter.