osgi style self registration sample