protected Phases parse(String fileUrl) throws SmartFrogException {
protected Phases parse(File file) throws SmartFrogException { String fileUrl; try { fileUrl = file.toURL().toString(); } catch (MalformedURLException e) { String msg = MessageUtil. formatMessage(MessageKeys.MSG_URL_TO_PARSE_NOT_FOUND, file.toString()); throw new SmartFrogParseException(msg); }
    protected Phases parse(String fileUrl) throws SmartFrogException {        Phases phases=null;        InputStream is=null;        try {            is = SFClassLoader.getResourceAsStream(fileUrl);            if (is == null) {                String msg = MessageUtil.                        formatMessage(MessageKeys.MSG_URL_TO_PARSE_NOT_FOUND, fileUrl);                throw new SmartFrogParseException(msg);            }            phases = (new SFParser("sf")).sfParse(is);        } finally {            if (is != null) {                try {                    is.close();                } catch (IOException swallowed) {                }            }        }        return phases;    }