if (schema != null) {
// TODO: check if schema has already been set
// TODO: more type related error handling, check root type of schema
// Add parser constructor with direct reference to schema
ConfigurationParserDefinition parserDef = new ConfigurationParserDefinitionImpl(
sourceModule, schemaAssignment.getLocation(), HiveMindSchemaParser.INPUT_FORMAT_NAME,
new HiveMindSchemaParserConstructor(schema));
cpd.addParser(parserDef);