// 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());
}
// if open social id was passed for person, convert to acct. id. else entityId is an accountId
if (followedEntityId.matches(openSocialPattern) && entityType == EntityType.PERSON)
{