class SnapshotStorageConnectorWithInference extends SnapshotStorageConnector implements InferredStorageConnector {

    @Override
    public boolean contains(Resource subject, Property property, RDFNode value, String context) {
        ensureTransactionalState();
        if (context != null) {
            return ((SnapshotStorageWithInference) storage).getRawNamedGraph(context)
                                                           .contains(subject, property, value);
        } else {
            return ((SnapshotStorageWithInference) storage).getRawDefaultGraph().contains(subject, property, value);
        }
    }

      SnapshotStorageConnectorWithInference(AbstractStorageConnector centralConnector,
                                          Map<String, String> reasonerConfig);

}