SimpleFeatureType indexSchema = null;
SchemaType schema = null;
String schemaAttributes = null;
Indexer indexer = runConfiguration.getIndexer();
if (indexer != null) {
SchemasType schemas = indexer.getSchemas();
Coverage coverage = IndexerUtils.getCoverage(indexer, name);
if (coverage != null) {
schema = IndexerUtils.getSchema(indexer, coverage);
}
if (schema != null) {
schemaAttributes = schema.getAttributes();
} else if (schemas != null) {
List<SchemaType> schemaList = schemas.getSchema();
// CHECK THAT
if (!schemaList.isEmpty()) {
schemaAttributes = schemaList.get(0).getAttributes();
}
}