code: public static MessagingSubscription createSIBSubscription(SIMPLocalSubscriptionControllable ls) {
  
          long depth = 0;
          String id = null;
          int maxMsgs = 0;
          String name = null;
          String selector = null;
          String subscriberId = null;
          String[] topics = null;
  
          depth = ls.getNumberOfQueuedMessages();
          id = ls.getId();
          name = ls.getName();
          selector = ls.getSelector();
          subscriberId = ls.getSubscriberID();
          topics = ls.getTopics();
  
          return new MessagingSubscription(depth, id, maxMsgs, name, selector, subscriberId, topics);
      }
docs: Create a MessagingSubscription instance from the supplied
  SIMPLocalSubscriptionControllable.
  
  @param ls
  @return