Embedding dependencies and setting up OSGi container to run autonomously