docs: public int getConnectionType()
      {
          int iConnectionType = DEFAULT_CONNECTION_TYPE;
          if (this.getMuffinManager() != null)
              if (this.getMuffinManager().isServiceAvailable())
                  iConnectionType = PROXY;    // HACK - Webstart gives a warning when using RMI
          String strConnectionType = this.getProperty(Params.CONNECTION_TYPE);
          if (strConnectionType != null)
          {
              if ("proxy".equalsIgnoreCase(strConnectionType))
                  iConnectionType = PROXY;
  //x                 if ("rmi".equalsIgnoreCase(strConnectionType))
  //x                     iConnectionType = RMI;
              if (Util.isNumeric(strConnectionType))
                  iConnectionType = Integer.parseInt(strConnectionType);
          }
          if (ClassServiceUtility.getClassService().getClassFinder(null) == null)
              iConnectionType = PROXY;    // No OSGi
          /*                if (iConnectionType == RMI)
          {
              try {
                  Hashtable<String,String> env = new Hashtable<String,String>();
                  env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
                  env.put(Context.PROVIDER_URL, "rmi://" + strServer);    // + ":1099");  // The RMI server port
                  Context initial = new InitialContext(env);
                  Object objref = initial.lookup(strRemoteApp);
                  if (objref == null)
                      return null;    // Ahhhhh, The app is not registered.
      
                  appServer = (ApplicationServer)PortableRemoteObject.narrow(objref, org.jbundle.thin.base.remote.ApplicationServer.class);
              } catch (NameNotFoundException ex) {
                  return null;    // Error - not found
              } catch (ServiceUnavailableException ex) {
                  return null;    // Error - not found
              } catch (Exception ex) {
                  ex.printStackTrace();
      //        } catch (java.net.ConnectException ex) {
                  // Try tunneling through http
                  iConnectionType = PROXY;
              }
          } */
          return iConnectionType;
      }