Source:
<code>private ImportMigrationConfigurationAdminEntry proxy(ImportMigrationEntry entry) { final Path path = entry.getPath(); final String extn = FilenameUtils.getExtension(path.toString()); final PersistenceStrategy ps = admin.getPersister(extn); if (ps == null) { context .getReport() .record( new MigrationException( "Import error: persistence strategy [%s] for configuration [%s] is not defined.", extn, path)); } else { final Dictionary<String, Object> properties; InputStream is = null; try { is = entry .getInputStream() .orElseThrow( () -> new MigrationException( "Import error: failed to read configuration [%s]; not exported.", path)); properties = readProperties(entry, ps, is); } catch (IOException e) { throw new MigrationException( "Import error: failed to read configuration [%s]; %s.", path, e); } finally { Closeables.closeQuietly(is); } final String pid = Objects.toString(properties.remove(Constants.SERVICE_PID), null); if (pid == null) { context .getReport() .record( new MigrationException("Import error: missing pid from configuration [%s].", path)); } else { String bundleLocation = null; if (restoreWithBundleLocation) { bundleLocation = Objects.toString(properties.remove(ConfigurationAdmin.SERVICE_BUNDLELOCATION), null); <START> } else { <END> properties.remove("felix.fileinstall.filename"); } final String factoryPid = Objects.toString(properties.remove(ConfigurationAdmin.SERVICE_FACTORYPID), null); try { return new ImportMigrationConfigurationAdminEntry( configurationAdmin, entry, bundleLocation, factoryPid, pid, properties, getAndRemoveMemoryConfig(factoryPid, pid, properties, entry.getPath())); } catch (MigrationException e) { context.getReport().record(e); } } } this.isValid = false; return null; }</code><technical_language>bundle location property removed properties object ignoring</technical_language>

Target:
private ImportMigrationConfigurationAdminEntry proxy(ImportMigrationEntry entry) { final Path path = entry.getPath(); final String extn = FilenameUtils.getExtension(path.toString()); final PersistenceStrategy ps = admin.getPersister(extn); if (ps == null) { context .getReport() .record( new MigrationException( "Import error: persistence strategy [%s] for configuration [%s] is not defined.", extn, path)); } else { final Dictionary<String, Object> properties; InputStream is = null; try { is = entry .getInputStream() .orElseThrow( () -> new MigrationException( "Import error: failed to read configuration [%s]; not exported.", path)); properties = readProperties(entry, ps, is); } catch (IOException e) { throw new MigrationException( "Import error: failed to read configuration [%s]; %s.", path, e); } finally { Closeables.closeQuietly(is); } final String pid = Objects.toString(properties.remove(Constants.SERVICE_PID), null); if (pid == null) { context .getReport() .record( new MigrationException("Import error: missing pid from configuration [%s].", path)); } else { String bundleLocation = null; if (restoreWithBundleLocation) { bundleLocation = Objects.toString(properties.remove(ConfigurationAdmin.SERVICE_BUNDLELOCATION), null); } else { properties.remove("felix.fileinstall.filename"); properties.remove(ConfigurationAdmin.SERVICE_BUNDLELOCATION); } final String factoryPid = Objects.toString(properties.remove(ConfigurationAdmin.SERVICE_FACTORYPID), null); try { return new ImportMigrationConfigurationAdminEntry( configurationAdmin, entry, bundleLocation, factoryPid, pid, properties, getAndRemoveMemoryConfig(factoryPid, pid, properties, entry.getPath())); } catch (MigrationException e) { context.getReport().record(e); } } } this.isValid = false; return null; }