public static function httpClient() { if (!self::$httpClient) { self::$httpClient = DefaultHttpClient::create(); } return self::$httpClient; }