private function buildSearchParameters() {
        $fields = $this->getModelBuilder()->getFields();
        $numberOfFields = sizeof($fields);
        if($numberOfFields > 5) {
            $numberOfFields = 5;
        }
        $parameters = array();
        for($i = 0; $i < $numberOfFields; $i++) {
            $parameter = new Swagger\Parameter();
            $parameter->setName($fields[$i]->getShortName());
            $parameter->setDescription($fields[$i]->getComment());
            $parameter->setParamType('query');
            $parameter->setType($fields[$i]->getSwaggerType());
            $parameters[] = $parameter;
        }

        return $parameters;
    }