public Schema loadFromRegistry ( String subject , int schemaId ) throws SchemaRegistryException { try { if ( isEmpty ( subject ) ) { return loadFromRegistry ( schemaId ) ; } else { return loadFromRegistry ( subject ) ; } } catch ( SchemaRegistryException e ) { throw new SchemaRegistryException ( e ) ; } }
Parses and returns an Avro schema loaded from the schema registry using the provided schema ID if available or the latest version of a schema for the specified subject .