field =  tempURL.substring(tempURL.lastIndexOf(token)+1,tempURL.length()); tempURL= (tempURL.substring(0, tempURL.lastIndexOf(token)));
if (tempURL.trim().endsWith("\"")) { String newURL = tempURL.substring(0, tempURL.length()-1); int indexFirstQuote = newURL.lastIndexOf("\""); field = tempURL.substring(indexFirstQuote+1,tempURL.length()-1); if (SFSystem.sfLog().isTraceEnabled()) {SFSystem.sfLog().trace("  Extracted ["+field+"] from ["+tempURL+"]"); } if (indexFirstQuote==-1) { indexFirstQuote = 1; } tempURL=tempURL.substring(0,indexFirstQuote-1); } else { field = tempURL.substring(tempURL.lastIndexOf(token)+1, tempURL.length()); if (SFSystem.sfLog().isTraceEnabled()) {SFSystem.sfLog().trace("  Extracted ["+field+"] from ["+tempURL+"]"); } tempURL = (tempURL.substring(0, tempURL.lastIndexOf(token))); }
    private String getAndCutLastFieldTempURL( String token) throws Exception{        String field = null;        field =  tempURL.substring(tempURL.lastIndexOf(token)+1,tempURL.length());        tempURL= (tempURL.substring(0, tempURL.lastIndexOf(token)));        return field;    }