private boolean produceDownloadFile(Kernel kernel, Artifact configId, HttpServletResponse response, boolean reply) throws IOException {
//todo: replace kernel mumbo jumbo with JSR-77 navigation
// Step 1: check if it's in a configuration store
ConfigurationManager mgr = ConfigurationUtil.getConfigurationManager(kernel);
List stores = mgr.listStores();
for (int i = 0; i < stores.size(); i++) {
AbstractName name = (AbstractName) stores.get(i);
//todo: this is bad!!!
if(name.getName().get(NameFactory.J2EE_NAME).equals("Local")) {
ConfigurationStore store = (ConfigurationStore) kernel.getProxyManager().createProxy(name, ConfigurationStore.class);