protected function getObjects($type, $queryCondition, $sortArray, $pagingInfo) {
    $persistenceFacade = $this->getPersistenceFacade();
    if (!$persistenceFacade->isKnownType($type)) {
      return [];
    }

    $request = $this->getRequest();
    $response = $this->getResponse();
    $query = new StringQuery($type);
    $query->setRQLConditionString($queryCondition);
    try {
      $objects = $query->execute(BuildDepth::SINGLE, $sortArray, $pagingInfo);
    }
    catch (UnknownFieldException $ex) {
      if ($ex->getField() == $request->getValue('sortFieldName')) {
        $response->addError(ApplicationError::get('SORT_FIELD_UNKNOWN'));
      }
    }
    if ($this->getLogger()->isDebugEnabled()) {
      $this->getLogger()->debug("Load objects with query: ".$query->getLastQueryString());
    }
    return $objects;
  }