* Component, WaspAction)
*/
@Override
public boolean isModelAuthorized(ISecureModel<?> model, Component component, WaspAction action)
{
DataPermission permission;
if (model instanceof SwarmModel<?>)
permission = new DataPermission(component, (SwarmModel<?>)model, (SwarmAction)action);
else
permission = new DataPermission(String.valueOf(model), action);
if (hasPermission(permission))
return true;
IAuthorizationMessageSource message = getMessageSource();
if (message != null)
{