function bindSessionEntity($sessionEntity)
{
    if ($sessionEntity != null) {
        $sessionDto = new SessionDto();
        $sessionDto->setSessionId($sessionEntity->getSessionId());
        $sessionDto->setUser(bindUserEntity($sessionEntity->getUser()));
        $sessionDto->setSessionLocation($sessionEntity->getSessionLocation());
        $sessionDto->setEffFrom($sessionEntity->getEffFrom());
        $sessionDto->setEffTo($sessionEntity->getEffTo());
        return $sessionDto;
    } else {
        return null;
    }
}