class RecordServiceImpl implements RecordService, Serializable {

    @Override
    public Record create(final Schema schema, final Record fallbackRecord,
            final BiFunction<Schema.Entry, Record.Builder, Boolean> customHandler,
            final BiConsumer<Record.Builder, Boolean> beforeFinish) {
        return fallbackRecord
                .getSchema()
                .getEntries()
                .stream()
                .collect(toRecord(schema, fallbackRecord, customHandler, beforeFinish));
    }

}