@Override
public <T extends AbstractFacet> List<T> filterFacets(final long viewerId, final long apiKeyId, final List<T> facets) {
final ApiKey apiKey = guestService.getApiKey(apiKeyId);
final Connector connector = apiKey.getConnector();
final boolean ownFacets = viewerId == apiKey.getGuestId();
final boolean supportsFiltering = connector.supportsFiltering();
if (ownFacets ||!supportsFiltering)
return facets;
else {
// retrieve SharedConnector instance;
SharedConnector sharedConnector = getSharedConnector(apiKeyId, viewerId);