* @throws PortletException
* @throws Exception
*/
private void uninstallConfig(ActionRequest actionRequest)
throws PortletException, Exception {
ConfigurationManager configManager = ConfigurationUtil
.getConfigurationManager(kernel);
List configStores = configManager.listStores();
int size = configStores.size();
String configID = getConfigID(actionRequest);
for (int i = 0; i < size; i++) {
ObjectName configStore = (ObjectName) configStores.get(i);
Boolean result = (Boolean) kernel.invoke(configStore,
CONTAINSCONFIG_METHOD,
new Object[] { URI.create(configID) }, CONTAINSCONFIG_SIG);
if (result.booleanValue() == true) {
// stop config if running
if (configManager.isLoaded(URI.create(configID))) {
//int state = kernel.getConfigurationState(configID);
int state = kernel
.getGBeanState(JMXUtil
.getObjectName(ObjectNameConstants.CONFIG_GBEAN_PREFIX
+ "\"" + configID + "\""));