Migrationg exception handling

About this task

In IBM® WebSphere® Multichannel Bank Transformation Toolkit version 4.3, APIs such as context.getKeyedCollection(), context.getValue() do not throw out exceptions; while in WebSphere Multichannel Bank Transformation Toolkit version 8.0, these APIs throw exceptions.

As a result, you must migrate exception handling and you must trace the exceptions.

The following code is the code sample before migration:
return utb.getContext().getKeyedCollection().getElements().entrySet();
After migration, the code is as follows:
try {
return utb.getContext().getKeyedCollection().getElements().entrySet();
} catch (DSEInvalidRequestException e) {
// TODO: Exception handling
//Trace the exception.
}
return null;