question: wrap the given arbitrary exception that happened during remote access in either a remoteexception or a spring remoteaccessexception if the method signature does not support remoteexception . only call this for remote access exceptions , not for exceptions thrown by the target service itself ! concode_field_sep Log logger concode_field_sep boolean isCorbaConnectFailure concode_elem_sep Object invokeRemoteMethod concode_elem_sep boolean isConnectFailure
target: Exception function ( Method arg0 , Throwable arg1 , String arg2 ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( arg2 , arg1 ) ; } if ( ReflectionUtils . declaresException ( arg0 , RemoteException . class ) ) { return new RemoteException ( arg2 , arg1 ) ; } else { return new RemoteAccessException ( arg2 , arg1 ) ; } }