public static Collection<DebuggerException> mergeExceptionsSettings(final DebugTargetSettings target,final Collection<DebuggerException> exceptions,final int debuggerId) throws CouldntLoadDataException {
  final Map<Long,DebuggerException> exceptionsMap=getExceptionsMap(exceptions);
  for (  final DebuggerException dbgException : exceptions) {
    final String setting=target.readSetting(DebuggerException.getSettingKey(dbgException,debuggerId));
    if (setting != null) {
      final DebuggerExceptionHandlingAction handlingAction=DebuggerExceptionHandlingAction.convertToHandlingAction(Integer.valueOf(setting));
      final DebuggerException newException=new DebuggerException(dbgException.getExceptionName(),dbgException.getExceptionCode(),handlingAction);
      exceptionsMap.put(dbgException.getExceptionCode(),newException);
    }
  }
  return exceptionsMap.values();
}

public static Collection < DebuggerException > mergeExceptionsSettings ( final DebugTargetSettings target , final Collection < DebuggerException > exceptions , final int debuggerId ) throws CouldntLoadDataException { final Map < Long , DebuggerException > exceptionsMap = getExceptionsMap ( exceptions ) ; for ( final DebuggerException dbgException : exceptions ) { final String setting = target . readSetting ( DebuggerException . getSettingKey ( dbgException , debuggerId ) ) ; if ( setting != null ) { final DebuggerExceptionHandlingAction handlingAction = DebuggerExceptionHandlingAction . convertToHandlingAction ( Integer . valueOf ( setting ) ) ; final DebuggerException newException = new DebuggerException ( dbgException . getExceptionName ( ) , dbgException . getExceptionCode ( ) , handlingAction ) ; exceptionsMap . put ( dbgException . getExceptionCode ( ) , newException ) ; } } return exceptionsMap . values ( ) ; }
merge the exception settings from the database with the ones received from the debugger .
