}
if (((AtomicType)it).isAbstract()) {
throw new SaxonApiException("Requested type is an abstract type");
}
Configuration config = type.getProcessor().getUnderlyingConfiguration();
ConversionResult result = new StringValue(lexicalForm).convert(
(AtomicType)it, true, config.getConversionContext());
try {
setValue(result.asAtomic());
} catch (ValidationException e) {
throw new SaxonApiException(e);
}
}