public static ApplicationXml parseApplicationXmlFromFile(File file,EntityResolver entityResolver) throws IOException, JDOMException {
  InputStream in=null;
  try {
    in=new FileInputStream(file);
    return parseApplicationXml(in,entityResolver);
  }
  finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}

public static ApplicationXml parseApplicationXmlFromFile ( File file , EntityResolver entityResolver ) throws IOException , JDOMException { InputStream in = null ; try { in = new FileInputStream ( file ) ; return parseApplicationXml ( in , entityResolver ) ; } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException ioe ) { } } } }
parses a deployment descriptor stored in a regular file .
