if ((phases != null) && (!phases.equals("all"))) {
if ((phases != null) && (!phase.equals("all"))) {
    public ComponentDescription parsePhase(String phase, String textToParse,        String language) {        Phases top = null;        Vector phases = null;        try {            top = new SFParser(language).sfParse(textToParse);            //System.out.println("TOP: "+ top.sfAsComponentDescription().toString());            if (phase.equals("raw")) {                return top.sfAsComponentDescription();            }        } catch (Throwable ex) {            ex.printStackTrace();        }        try {            if (top != null) {                phases = top.sfGetPhases();                // Parse up to the phase selected in sfComboBox                Vector auxphases = new Vector();                if ((phases != null) && (!phases.equals("all"))) {                    Iterator iter = phases.iterator();                    String temp;                    while (iter.hasNext()) {                        temp = (String) (iter.next());                        //System.out.println("Temp: "+temp);                        auxphases.add(temp);                        if (temp.equals(phase)) {                            break;                        }                        // end while                    }                    //end phases                }                if (phase.equals("all")) {                    auxphases = (Vector) (phases.clone());                    //for multilanguage!                    top = top.sfResolvePhases();                    return (top.sfAsComponentDescription());                }                //System.out.println("Phases: "+ auxphases.toString());                top = top.sfResolvePhases(auxphases);                //System.out.println("TOP after: "+ top.        //sfAsComponentDescription().toString());                //this.log("SFParse Done(" + (auxphases.lastElement()).        //toString() + ").", "Parse", 3);                return (top.sfAsComponentDescription());            } else {                //this.log("SFParse Failed. No top.", "Parse", 5);                return null;                //3 Info            }        } catch (Throwable ex) {            //this.log(ex.getMessage(), "Parse", 5);            System.err.println("Error: " + ex.toString());            //ex.printStackTrace();        }        return null;    }