* @param finalResponseProcessor The response processor.
* @throws Exception Any uncaught exceptions raised by the process method.
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public void iterate(final RP finalResponseProcessor) throws Exception {
ExtendedResponseProcessor erp = new ExtendedResponseProcessor() {
@Override
public void processResponse(Object otherResponse) throws Exception {
final Object maybeFinalResponse = JABidiIterator.this.processResponse(otherResponse);
if (maybeFinalResponse != null) {
// Done!