/**
  * Returns a new SessionQuery object.
  *
  * @param     string $modelAlias The alias of a model in the query
  * @param   SessionQuery|Criteria $criteria Optional Criteria to build the query from
  *
  * @return SessionQuery
  */
 public static function create($modelAlias = null, $criteria = null)
 {
     if ($criteria instanceof SessionQuery) {
         return $criteria;
     }
     $query = new SessionQuery();
     if (null !== $modelAlias) {
         $query->setModelAlias($modelAlias);
     }
     if ($criteria instanceof Criteria) {
         $query->mergeWith($criteria);
     }
     return $query;
 }