Added OSGi 4.2 compatibility

Signed-off-by: Oliver Libutzki <o.libutzki@external.telekom.de>