This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Did you post this before and then delete the topic? I seem to remember answering this not 5 minutes ago...but I can't find the other topic
Anyway, this sounds like a job for a java.util.Map. Simply store the String bufferName as the key and then the Buffer object as the value. Whenever you get a string, just look up that string in the Map and get the correct Buffer object.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.