class ElasticsearchAccessMetadata extends ElasticsearchAccess {

    public final Map<String, String> addIndex(final MetadataCollections collection, Integer tenantId) {
        try {
            return super.createIndexAndAliasIfAliasNotExists(collection.getName().toLowerCase(), getMapping(collection),
                tenantId);
        } catch (final Exception e) {
            LOGGER.error("Error while set Mapping", e);
            return new HashMap<>();
        }
    }

    public  ElasticsearchAccessMetadata(final String clusterName, List<ElasticsearchNode> nodes);

}