@Override
public ObjectConnection getConnection() throws RepositoryException {
ObjectConnection con;
RepositoryConnection conn = getDelegate().getConnection();
synchronized (compiled) {
ObjectFactory factory = createObjectFactory(mapper, pm, literals,
resolver, cl);
con = new ObjectConnection(this, conn, factory, createTypeManager(), blobs);
}
con.setIncludeInferred(isIncludeInferred());
con.setMaxQueryTime(getMaxQueryTime());
con.setQueryLanguage(getQueryLanguage());
con.setReadContexts(getReadContexts());
con.setAddContexts(getAddContexts());
con.setRemoveContexts(getRemoveContexts());
con.setArchiveContexts(getArchiveContexts());
return con;
}