// getting desparate...
if( dt instanceof XSDatatypeImpl ) {
// if it contains EnumerationFacet, we can try that.
XSDatatypeImpl dti = (XSDatatypeImpl)dt;
EnumerationFacet e = (EnumerationFacet)dti.getFacetObject( XSDatatype.FACET_ENUMERATION );
if(e!=null) {
Object[] items = e.values.toArray();
for( int i=0; i<10; i++ ) {
try {
return dti.convertToLexicalValue(items[random.nextInt(items.length)],context);