code: private void initPIDAndHostName() throws DevFailed {
  
          final RuntimeMXBean rmxb = ManagementFactory.getRuntimeMXBean();
          final String pidAndHost = rmxb.getName();
          final String[] splitted = pidAndHost.split("@");
          if (splitted.length > 1) {
              pid = splitted[0];
          }
  
          try {
              final InetAddress addr;
              if (ORBManager.OAI_ADDR != null && !ORBManager.OAI_ADDR.isEmpty()) {
                  addr = InetAddress.getByName(ORBManager.OAI_ADDR);
              } else {
                  addr = InetAddress.getLocalHost();
              }
              hostName = addr.getCanonicalHostName();
          } catch (final UnknownHostException e) {
              throw DevFailedUtils.newDevFailed(e);
          }
  
          logger.debug("pid: " + pid);
          logger.debug("hostName: " + hostName);
  
      }
docs: WARNING: it is jvm dependent (works for sun')
  
  @throws DevFailed