protected XSAtomicType assertAtomicType(XSSimpleType pType) throws SAXException {
assertTrue(pType.isAtomic());
assertTrue(!pType.isList());
assertTrue(!pType.isUnion());
XSAtomicType result = pType.getAtomicType();
assertNotNull(result);
boolean haveException = false;
try {
pType.getListType();
} catch (IllegalStateException e) {