code: public static boolean isClientContainer()
      {
          String processType = AccessController.doPrivileged(new PrivilegedAction<String>() {
              @Override
              public String run() {
                  return bundleContext.getProperty(WsLocationConstants.LOC_PROCESS_TYPE);
              }
          });
          return Boolean.valueOf(WsLocationConstants.LOC_PROCESS_TYPE_CLIENT.equals(processType));
      }
docs: /*
  Returns true if environment is client container.
  This has to be only used by JMS 20 module (so it is safe .. as no chance of NPE..i.e bundleContext is always initialized properly)