* {@inheritDoc}
*/
@Override
public Serializable execute(final TaskHandlerActionContext<ClientPrincipalActionContext> inWrapperContext)
{
final ClientPrincipalActionContext actionContext = inWrapperContext.getActionContext();
String clientId = actionContext.getClientUniqueId();
SendPrebuiltNotificationRequest params = (SendPrebuiltNotificationRequest) actionContext.getParams();
PersonModelView recipient = (PersonModelView) actionContext.getState().get("recipient");
long recipientId = recipient != null ? recipient.getId() : personIdMapper.execute(params
.getRecipientAccountId());
PrebuiltNotificationsRequest notifRequest = new PrebuiltNotificationsRequest(RequestType.EXTERNAL_PRE_BUILT,
params.isHighPriority(), clientId, recipientId, params.getMessage(), params.getUrl());