class StringPassResolver extends BasePlugin implements Resolver {

    @Override
    public OneRow setFields(List<OneField> record) {
        OneField oneField = record.get(0);

        if ((oneField.val instanceof InputStream && resolveWriteCount > 0) ||
                (oneField.val instanceof byte[] && ((byte[]) oneField.val).length == 0)) {
            // For the inputStream case, we only consume the inputStream once
            // and then we need to return null to indicate, during the next
            // iteration, that the stream has been consumed
            return null;
        }
        oneRow.setData(oneField.val);
        resolveWriteCount++;
        return oneRow;
    }

}