* Check to see if the current element is a deprecated container of
* character data and if it is then log an error but do it only once for
* each deprecated element.
*/
private void checkDeprecatedContainer() {
ElementType validatingElement = validator.getValidatingElement();
if (DEPRECATED_PCDATA_CONTAINERS.contains(validatingElement)) {
// Synchronize to ensure that only a single message is written
// out even under load.
synchronized(DEPRECATED_ERRORS) {
// If an error has already been written out for the validating