protected function _get_object($user)
{
static $current;
//make sure the user is loaded only once.
if (!is_object($current) and is_string($user)) {
// Load the user
$current = Jelly::select('user')->where('username', '=', $user)->limit(1)->execute();
}
if ($user instanceof Model_User and $user->loaded()) {
$current = $user;
}
return $current;
}