class X937Copier implements X937RecordCopier {

    @Override
    public X9Record copy(X9Record input) throws InvalidDataException {
        X937RecordCopier copier = recordCopiers[input.recordType()];
        if (copier == null) {
            throw new InvalidDataException("Unknown record type" + input.recordType());
        }
        return copier.copy(input);
    }

    public  X937Copier(X9RecordFactory factory);

}