writePendingText();
if(!acceptor.isAcceptState(null)) {
// some required elements are missing
// report error
StringRef ref = new StringRef();
acceptor.isAcceptState(ref);
context.reportEvent(target,ref.str);
}
// pop the acceptor
Acceptor child = acceptor;
acceptor = (Acceptor)stack.pop();
if(!acceptor.stepForward( child, null )) {
// some required elements are missing.
// report an error
StringRef ref = new StringRef();
acceptor.stepForward( child, ref ); // force recovery and obtain an error message.
context.reportEvent(target,ref.str);
}