code: @Override
      public void setShareDurableSubscriptions(String sharePolicy) throws JMSException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "setShareDurableSubscriptions", sharePolicy);
  
          // First of all, convert null and empty to mean the default.
          if ((sharePolicy == null) || ("".equals(sharePolicy))) {
              jcaManagedConnectionFactory.setShareDurableSubscriptions(ApiJmsConstants.SHARED_DSUBS_NEVER);
          }
          // Then check for another legal value
          else if ((ApiJmsConstants.SHARED_DSUBS_IN_CLUSTER.equals(sharePolicy)) ||
                   (ApiJmsConstants.SHARED_DSUBS_ALWAYS.equals(sharePolicy)) ||
                   (ApiJmsConstants.SHARED_DSUBS_NEVER.equals(sharePolicy))) {
              jcaManagedConnectionFactory.setShareDurableSubscriptions(sharePolicy);
          }
          else {
              // This is not a legal value.
              throw (JMSException) JmsErrorUtils.newThrowable(
                                                              JMSException.class,
                                                              "INVALID_VALUE_CWSIA0261",
                                                              new Object[] { "shareDurableSubscriptions", sharePolicy },
                                                              tc
                              );
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(this, tc, "setShareDurableSubscriptions");
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setShareDurableSubscriptions(java.lang.String)