public static function getInstance()
 {
     if (self::$singleton == null) {
         self::$singleton = new ChannelRegistry();
         self::$singleton->configure(ORBConfig::getInstance()->getFlexConfigPath());
     }
     return self::$singleton;
 }
 public function getServiceChannels()
 {
     /*ArrayList*/
     $channels = ChannelRegistry::getInstance()->getChannels();
     /*ArrayList*/
     $channelNames = array();
     $channelNames[] = "default channel";
     for ($i = 0; $i < count($channels); $i++) {
         $channelNames[] = $channels[$i]->getId();
     }
     return $channelNames;
 }