class SimpleCatalogManager implements CatalogManager {

    @Override
    public <T extends Record> T createRecord(User user, RecordOperationConfig config, Class<T> recordClass) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            RecordService<T> recordService = Optional.ofNullable(getRecordService(recordClass))
                    .orElseThrow(() -> new IllegalArgumentException("Service for factory " + recordClass.toString()
                            + " is unavailable or doesn't exist."));
            return recordService.create(user, config, conn);
        }
    }

    public  SimpleCatalogManager();

}