Program: 104395
Project: 104395
Buggy source:
/** 
 * Restores all accounts stored for the package corresponding to sourceFactory and and installs everyone of them through the install account method. <p>
 * @param bundleContext a currently valid bundle context.
 */
protected void loadStoredAccounts(BundleContext bundleContext){
  String sourcePackageName=getFactoryImplPackageName();
  ServiceReference confReference=bundleContext.getServiceReference(ConfigurationService.class.getName());
  ConfigurationService configurationService=(ConfigurationService)bundleContext.getService(confReference);
  List storedAccounts=configurationService.getPropertyNamesByPrefix(sourcePackageName,true);
  logger.debug("String_Node_Str" + storedAccounts.size() + "String_Node_Str");
  Iterator storedAccountsIter=storedAccounts.iterator();
  while (storedAccountsIter.hasNext()) {
    String accountRootPropName=(String)storedAccountsIter.next();
    logger.debug("String_Node_Str" + accountRootPropName);
    List storedAccPropNames=configurationService.getPropertyNamesByPrefix(accountRootPropName,true);
    Iterator propNamesIter=storedAccPropNames.iterator();
    Map accountProperties=new Hashtable();
    while (propNamesIter.hasNext()) {
      String fullPropertyName=(String)propNamesIter.next();
      String storedPropertyValue=configurationService.getString(fullPropertyName);
      String propertyName=fullPropertyName.substring(fullPropertyName.lastIndexOf('.') + 1);
      if (propertyName.equals(PASSWORD)) {
        if (storedPropertyValue == null || storedPropertyValue.length() == 0) {
          storedPropertyValue="String_Node_Str";
        }
 else {
          storedPropertyValue=new String(Base64.decode(storedPropertyValue));
        }
      }
      accountProperties.put(propertyName,storedPropertyValue);
    }
    loadAccount(accountProperties);
  }
}

Fixed version (ground truth):
/** 
 * Restores all accounts stored for the package corresponding to sourceFactory and and installs everyone of them through the install account method. <p>
 * @param bundleContext a currently valid bundle context.
 */
protected void loadStoredAccounts(BundleContext bundleContext){
  String sourcePackageName=getFactoryImplPackageName();
  ServiceReference confReference=bundleContext.getServiceReference(ConfigurationService.class.getName());
  ConfigurationService configurationService=(ConfigurationService)bundleContext.getService(confReference);
  List storedAccounts=configurationService.getPropertyNamesByPrefix(sourcePackageName,true);
  logger.debug("String_Node_Str" + storedAccounts.size() + "String_Node_Str");
  Iterator storedAccountsIter=storedAccounts.iterator();
  while (storedAccountsIter.hasNext()) {
    String accountRootPropName=(String)storedAccountsIter.next();
    logger.debug("String_Node_Str" + accountRootPropName);
    List storedAccPropNames=configurationService.getPropertyNamesByPrefix(accountRootPropName,true);
    Iterator propNamesIter=storedAccPropNames.iterator();
    Map accountProperties=new Hashtable();
    while (propNamesIter.hasNext()) {
      String fullPropertyName=(String)propNamesIter.next();
      String storedPropertyValue=configurationService.getString(fullPropertyName);
      String propertyName=fullPropertyName.substring(fullPropertyName.lastIndexOf('.') + 1);
      if (propertyName.equals(PASSWORD)) {
        if (storedPropertyValue == null || storedPropertyValue.length() == 0) {
          storedPropertyValue="String_Node_Str";
        }
 else {
          storedPropertyValue=new String(Base64.decode(storedPropertyValue));
        }
      }
      accountProperties.put(propertyName,storedPropertyValue);
    }
    try {
      loadAccount(accountProperties);
    }
 catch (    Exception exc) {
      logger.error("String_Node_Str" + accountProperties,exc);
    }
  }
}