ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
List<AbstractName> stores = mgr.listStores();
List<ConfigurationData> results = new ArrayList<ConfigurationData>();
for (AbstractName storeName : stores) {
try {
List<ConfigurationInfo> infos = mgr.listConfigurations(storeName);
for (ConfigurationInfo info : infos) {
AbstractName configuration = Configuration.getConfigurationAbstractName(info.getConfigID());
if (type == null || type.getValue() == info.getType().getValue()) {
J2EEDeployedObject module = getModuleForConfiguration(info.getConfigID());
results.add(new ConfigurationData(info.getConfigID(), configuration, null, info.getState(), info.getType(), module == null ? null : kernel.getAbstractNameFor(module)));