// Invoke the read method, passing in the input stream to
// retrieve the user exception. Mark and reset the stream
// as to not disturb it.
InputStream ueInputStream = appException.getInputStream();
ueInputStream.mark( 0 );
UserException userException = null;
try {
java.lang.Object[] readArguments = new java.lang.Object[1];
readArguments[0] = ueInputStream;
userException = (UserException)readMethod.invoke(
null, readArguments );