String path = makePath(pathV, separator);
Vector classpathFlat=recursivelyFlatten(pathV); Iterator entries=classpathFlat.iterator(); StringBuffer result= new StringBuffer(); while (entries.hasNext()) { Object entry = (Object) entries.next(); String dirname=entry.toString();  dirname=platform.convertFilename(dirname); File file=new File(dirname); if(file.exists() && file.isFile()) { String dir=file.getParent(); if(dir!=null) { dirname=dir; } else {  } } result.append(dirname); result.append(platform.getPathSeparator()); } String path = result.toString();
    String buildEndorsedDirs(String separator) throws SmartFrogResolutionException, RemoteException {        Vector pathV = (Vector) sfResolve(varEndorsedDirs, (Vector) null, false);        if(pathV==null) {            return null;        }        String path = makePath(pathV, separator);        return path;    }