add method generateEntityPath($entity, $routeName)