Connector connector = null;
if (apiKey != null && apiKey.getConnector() != null) {
connector = apiKey.getConnector();
}
if (connector != null && connector.hasImageObjectType()) {
final ObjectType[] objectTypes = connector.objectTypes();
if (objectTypes != null) {
for (ObjectType objectType : objectTypes) {
if (objectType.isImageType()) {
List<AbstractFacet> facets = facetFinderStrategy.find(apiKey, objectType, tagFilter);
photos.addAll(convertFacetsToPhotos(apiKey, timeInterval, facets, connector, objectType));