public Phases sfParseResource(String url, String codebase) throws SmartFrogParseException { InputStream is=null; try { is = SFClassLoader.getResourceAsStream(url,codebase, true); if (is==null) { throw new SmartFrogParseException( MessageUtil.formatMessage(MSG_URL_TO_PARSE_NOT_FOUND,url)); } return sfParse(is); } catch (SmartFrogParseException spex){ throw spex; } catch (Throwable thr) { throw new SmartFrogParseException(MessageUtil. formatMessage(MSG_ERR_PARSE), thr); } finally { if (is!=null) { try { is.close(); } catch (IOException ignored) {  } } }
public Phases sfParseResource(String url) throws SmartFrogParseException { return sfParseResource(url,null);
     public Phases sfParseResource(String url, String codebase) throws SmartFrogParseException {         InputStream is=null;         try {             is = SFClassLoader.getResourceAsStream(url,codebase, true);             if (is==null) {                 throw new SmartFrogParseException(                 MessageUtil.formatMessage(MSG_URL_TO_PARSE_NOT_FOUND,url));             }             return sfParse(is);         } catch (SmartFrogParseException spex){             throw spex;         } catch (Throwable thr) {             throw new SmartFrogParseException(MessageUtil.                     formatMessage(MSG_ERR_PARSE), thr);         } finally {             if (is!=null) {                 try {                     is.close();                 } catch (IOException ignored) {                 //TODO                 }             }         }     }