Configuration config = configManager.getConfiguration(info.getConfigID());
if (config != null && configManager.isRunning(info.getConfigID())) {
for(Map.Entry<AbstractName, GBeanData> entry : config.getGBeans().entrySet()) {
if(entry.getKey().getNameProperty("name").equals("AriesApplication")) {
try {
ApplicationGBean applicationGBean = (ApplicationGBean)PortletManager.getKernel().getGBean(entry.getKey());
long[] bundleIds = applicationGBean.getApplicationContentBundleIds();
BundleContext bundleContext = config.getBundleContext();
for (long id : bundleIds){
Bundle bundle = bundleContext.getBundle(id);
if (bundle != null && bundle.getHeaders().get("Web-ContextPath") != null){
details.getContextPaths().add((String)bundle.getHeaders().get("Web-ContextPath"));