Changed ServiceLayer to EntityServiceLayer in pattern's instance
detection

Signed-off-by: selmeci <selmeci.roman@gmail.com>