* to false, abort with an error message.
*
* Note: we use the deprecated class here for compatibility with
* older versions of WMSPlugin.
*/
PermissionPrefWithDefault permissionPref = getPermissionPref();
if (permissionPref != null && permissionPref.pref != null) {
if (!Main.pref.getBoolean(permissionPref.pref, permissionPref.defaultVal)) {
String err = MessageFormat.format("RemoteControl: ''{0}'' forbidden by preferences", myCommand);
Main.info(err);
throw new RequestHandlerForbiddenException(err);