StringBuilder configString = new StringBuilder();
if (currentConfig == null)
configString.append("config=null");
else {
configString.append("config={");
LLNameEnumeration names = currentConfig.enumerateNames();
while (names.hasMoreElements()) {
String name = names.nextElement().toString();
configString.append(name).append("=");
if (name.endsWith("assword"))
configString.append("[...]");
else
configString.append(currentConfig.toString(name));