((ExtendedUserDetails) userDetails).getPerson().getId());
ServiceActionContext currentContext = new ServiceActionContext(currentRequest, principal);
if (actionBean instanceof ServiceAction)
{
newDomainEntity = (T) serviceActionController.execute(currentContext, (ServiceAction) actionBean);
}
else
{
newDomainEntity = (T) serviceActionController.execute(currentContext,
(TaskHandlerServiceAction) actionBean);