public void addReadSchemas(SchemaManager sm) throws IOException {
Iterator<SchemaDefinition> sdit = sm.getSchemas();
if (sdit != null){
while(sdit.hasNext()){
SchemaDefinition sd = sdit.next();
allSchemasByID.put(sd.getSchemaBaseID(), sd);
allSchemasByName.put(sd.getName().getNameString(), sd);
if (sd.getName().getNameString().length() > longest)
longest = sd.getName().getNameString().length();
}
}
}