public void checkValidity(TransactionElement element, Map featureTypeInfos) throws WFSTransactionException { if (!getInfo().getServiceLevel().getOps().contains(WFSInfo.Operation.TRANSACTION_REPLACE)) { throw new WFSException(element, "Transaction REPLACE support is not enabled"); } if (featureTypeInfos.size() != 1) { throw new WFSException( element, "Transaction REPLACE must only specify features from a" + " single feature type"); } }