private void processCommandLine(BundleContext context) {
ServiceTracker environmentTracker = new ServiceTracker(context,
EnvironmentInfo.class.getName(), null);
environmentTracker.open();
EnvironmentInfo environmentInfo = (EnvironmentInfo) environmentTracker
.getService();
environmentTracker.close();
if (environmentInfo == null) {
return;
}
String[] args = environmentInfo.getNonFrameworkArgs();
if (args == null || args.length == 0) {
return;
}
// go over the program args. search backwards since the program