{
Logger.warn("expected object type AbstractHBCIPassport but was " + context);
return;
}
AbstractHBCIPassport hbciPassport = (AbstractHBCIPassport) context;
Object o = hbciPassport.getPersistentData(PassportHandle.CONTEXT_USERID_CHANGED);
if (o == null)
{
Logger.warn("no changed customer data in persistent data of passport found");
return;
}
try
{
String changes = o.toString();
int pos = changes.indexOf("|");
if (pos == -1)
{
Logger.warn("changes did not contain userId|custId");
return;
}
String userId = changes.substring(0,pos);
String custId = changes.substring(pos+1);
if (userId.length() == 0)
{
Logger.warn("no userId found");
return;
}
if (custId.length() == 0)
{
Logger.warn("no custId found");
return;
}
String custOld = hbciPassport.getCustomerId();
String userOld = hbciPassport.getUserId();
String text = i18n.tr("Die Bank hat mitgeteilt, dass sich die Benutzer- und Kundenkennung Ihres\n" +
"Bank-Zugangs ge�ndert hat. Die neuen Zugangsdaten lauten:\n\n" +
" Alte Kundenkennung: {0}\n" +
" Neue Kundenkennung: {1}\n\n" +