public void update ( InputSource in ) throws SAXException { defaultValuesCollector = null ; PropertyMapBuilder builder = new PropertyMapBuilder ( ) ; //Set the resolver builder . put ( ValidateProperty . RESOLVER , resolver ) ; builder . put ( ValidateProperty . ERROR_HANDLER , eh ) ; PropertyMap properties = builder . toPropertyMap ( ) ; try { SchemaWrapper sw = ( SchemaWrapper ) getSchemaReader ( ) . createSchema ( in , properties ) ; Pattern start = sw . getStart ( ) ; defaultValuesCollector = new DefaultValuesCollector ( start ) ; } catch ( Exception e ) { eh . warning ( new SAXParseException ( "Error loading defaults: " + e . getMessage ( ) , null , e ) ) ; } catch ( StackOverflowError e ) { //EXM-24759 Also catch stackoverflow eh . warning ( new SAXParseException ( "Error loading defaults: " + e . getMessage ( ) , null , null ) ) ; } }
Updates the annotation model .