*/
protected void checkActiveReadTransformers(final List<ReadTransformer> readTransformers) {
if ( readTransformers == null )
throw new IllegalArgumentException("read transformers cannot be null");
ReadTransformer sawMustBeFirst = null;
ReadTransformer sawMustBeLast = null;
for ( final ReadTransformer r : readTransformers ) {
if ( r.getOrderingConstraint() == ReadTransformer.OrderingConstraint.MUST_BE_FIRST ) {
if ( sawMustBeFirst != null )
throw new UserException.IncompatibleReadFiltersException(sawMustBeFirst.toString(), r.toString());
sawMustBeFirst = r;
} else if ( r.getOrderingConstraint() == ReadTransformer.OrderingConstraint.MUST_BE_LAST ) {
if ( sawMustBeLast != null )
throw new UserException.IncompatibleReadFiltersException(sawMustBeLast.toString(), r.toString());
sawMustBeLast = r;
}
}
}