*/
@Override
public Serializable execute(final PrincipalActionContext inActionContext)
{
// get the request.
GetCurrentUserFollowingStatusRequest inRequest = (GetCurrentUserFollowingStatusRequest) inActionContext
.getParams();
// get the user's account id.
final Principal principal = inActionContext.getPrincipal();
final String accountId = principal.getAccountId();
final Long userId = principal.getId();
// the followed entity's account id.
String followedEntityId = inRequest.getFollowedEntityId();
// the followed entity's entity type.
final EntityType entityType = inRequest.getEntityType();
if (log.isTraceEnabled())
{
log.trace("Checking the following status for the user " + accountId + " following " + followedEntityId
+ " of entity type " + entityType.toString());