@Override
public Object answer(final InvocationOnMock invocation) throws Throwable
{
Iterator<ConfiguredObjectRecord> iterator = asList(records).iterator();
ConfiguredObjectRecordHandler handler = (ConfiguredObjectRecordHandler) invocation.getArguments()[0];
handler.begin();
boolean handlerContinue = true;
while(iterator.hasNext() && handlerContinue)
{
handlerContinue = handler.handle(iterator.next());
}