Adding capability of running on OSGi container