private static synchronized String getPidOfProcess(Process p) {
        long pid = -1;
        try {
            if (p.getClass().getName().equals("java.lang.UNIXProcess")) {
                Field f = p.getClass().getDeclaredField("pid");
                f.setAccessible(true);
                pid = f.getLong(p);
                f.setAccessible(false);
            }
        } catch (Exception e) {
            pid = -1;
        }
        return Long.toString(pid);
    }
build reLinksFiles for cacheFiles and cacheArchives for mpi app
core/src/main/java/net/qihoo/hbox/container/HboxContainer.java