@Override public WebMapServer getWebMapServer(ProgressListener listener) throws IOException { WebMapServer wms = super.getWebMapServer(null); if (wms == null) return null; else if (policy.level == AccessLevel.METADATA) throw SecureCatalogImpl.unauthorizedAccess(this.getName()); else return (WebMapServer) SecuredObjects.secure(wms, policy); } }