code: @Nullable
      private Record getRecord(final URI layer, @Nullable final URI id) throws Throwable {
          final Record record = id == null ? null : getSession().retrieve(layer).ids(id).exec()
                  .getUnique();
          if (record != null && layer.equals(KS.MENTION)) {
              final String template = "SELECT ?e WHERE { ?e $$ $$ "
                      + (getUIConfig().isDenotedByAllowsGraphs() ? ""
                              : "FILTER NOT EXISTS { GRAPH ?e { ?s ?p ?o } } ") + "}";
              for (final URI entityID : getSession()
                      .sparql(template, getUIConfig().getDenotedByProperty(), id).execTuples()
                      .transform(URI.class, true, "e")) {
                  record.add(KS.REFERS_TO, entityID);
              }
          }
          return record;
      }
docs: DATA ACCESS METHODS