code: @Override
      public synchronized boolean truncateResource(final SessionConfiguration pSesConf) throws TTException {
          // check that database must be closed beforehand
          checkState(!mSessions.containsKey(pSesConf.getResource()),
              "Please close all session before truncating!");
          if (existsResource(pSesConf.getResource())) {
              ISession session = getSession(pSesConf);
              if (session.truncate()) {
                  return true;
              } else {
                  return false;
              }
          } else {
              return false;
          }
  
      }
docs: {@inheritDoc}