public void start(BundleContext context) throws Exception
{
try
{
final SmooksFactory smooksOSGIFactory = new SmooksOSGIFactory(context.getBundle());
final String config = (String) context.getBundle().getHeaders().get("Smooks-Config");
smooks = smooksOSGIFactory.createInstance(config);
performFiltering(context);
}
catch (Exception e)
{
e.printStackTrace();