* @param action action on the resource indicated by the permission
* @throws NoSuchMethodException
*/
protected void addMethodPermission(String methodName, Class permissionClass, String action) throws NoSuchMethodException {
if (panelSecurity == null)
panelSecurity = new PanelSecurity();
//This is to verify that method exists
this.getClass().getMethod(methodName, new Class[]{Panel.class, CommandRequest.class});
panelSecurity.addMethodPermission(methodName, permissionClass, action);
}