private function sendGCMessage($mes, $text, $to)
    {
        $message=new AndroidMessage();
        $message->setMessage($text);
        $message->setData($mes);
        $message->setDeviceIdentifier($to);
        $message->setGCM(true);
//        $logger = $this->container->get('logger');
//        $logger->emerg(implode(',', $message->getData()));
        try {
            $response = $this->container->get('rms_push_notifications')->send($message);
        } catch (InvalidMessageTypeException $e) {
            throw $e;
        }

        return $response;
    }