engine: Fix coverity warnings

Fixed the following:
1. Inner class should be static
2. A private field should be accessed

Change-Id: I998f955a42cf930fdec73ed44a0114fdbbcc4fe2
Signed-off-by: Moti Asayag <masayag@redhat.com>