try {
TileSet tileset = handle.resolve(TileSet.class, new SubProgressMonitor(monitor, 30));
AbstractOpenWebService server = null;
if (handle.canResolve(WebMapServer.class)) {
server = handle.resolve(WebMapServer.class, new SubProgressMonitor(monitor, 30));
}
if (handle.canResolve(TiledWebMapServer.class)) {
server = handle.resolve(TiledWebMapServer.class,
new SubProgressMonitor(monitor, 30));
}