in src/main/java/org/apache/fineract/cn/cassandra/core/TenantAwareCassandraMapperProvider.java [53:61]
public <T> Mapper<T> getMapper(@Nonnull final Class<T> type) {
Assert.notNull(type, "A type must be given.");
if (TenantContextHolder.identifier().isPresent()) {
final String identifier = TenantContextHolder.checkedGetIdentifier();
return this.getMapper(identifier, type);
} else {
throw new IllegalArgumentException("Could not find tenant identifier, make sure you set an identifier using TenantContextHolder.");
}
}