if (!securityManager.validateUserAndRole(user, session.getPassword(), roles, checkType))
{
if (notificationService != null)
{
TypedProperties props = new TypedProperties();
props.putSimpleStringProperty(ManagementHelper.HDR_ADDRESS, address);
props.putSimpleStringProperty(ManagementHelper.HDR_CHECK_TYPE, new SimpleString(checkType.toString()));
props.putSimpleStringProperty(ManagementHelper.HDR_USER, SimpleString.toSimpleString(user));
Notification notification = new Notification(null, NotificationType.SECURITY_PERMISSION_VIOLATION, props);
notificationService.sendNotification(notification);
}