protected Object unwrapRemoteCallReturn ( RemoteCallReturn remoteCallReturn ) throws Throwable { if ( remoteCallReturn . getException ( ) != null ) { throw handleException ( remoteCallReturn . getException ( ) ) ; } else { return remoteCallReturn . getReturnValue ( ) ; } }
Unwraps a SOAP remote call return such that if there was an exception it is thrown and if it was a successful call the return value of the SOAP call is returned .