core: Fix coverity warnings

Fixed the following:
1. Inner class should be static
2. The labels field was never accessed

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