* @param directory The root directory of a {@link IWebApplication}.
* @return A web app server descriptor if it exists, otherwise null
*/
public static WebApplicationServerDescriptor get (IVirtualDirectory directory) {
try {
return XMLDocument.read(directory.getFile(new SimplePath("WEB-INF/web-server.xml")), WebApplicationServerDescriptor.class);
} catch (VirtualArtifactNotFoundException e) {
return null;
}
}