osgi package no longer uses deprecated methods