}
// Merge and process properties
int objectCounter = 1;
int transformerCounter = 1;
Properties transformers = new OrderedProperties();
Properties namedObjects = new OrderedProperties();
Properties unnamedObjects = new OrderedProperties();
Map<String,String> singleTransactionFactories = new LinkedHashMap<String,String>();
for (Properties bootstrap : bootstraps)
{
for (Map.Entry entry : bootstrap.entrySet())
{
final String key = (String) entry.getKey();
if (key.contains(OBJECT_KEY))
{
String newKey = key.substring(0, key.lastIndexOf(".")) + objectCounter++;
unnamedObjects.put(newKey, entry.getValue());
}
else if (key.contains(TRANSFORMER_KEY))
{
String newKey = key.substring(0, key.lastIndexOf(".")) + transformerCounter++;
transformers.put(newKey, entry.getValue());