@Override
public void storeInitialHistory(ApiKey apiKey, int objectTypes) {
logger.info("module=updateQueue component=bodytrackStorageService action=storeInitialHistory" +
" objectTypes=" + objectTypes +
" guestId=" + apiKey.getGuestId() + " connector=" + apiKey.getConnector().getName());
TimeInterval timeInterval = new SimpleTimeInterval(0,
System.currentTimeMillis(), TimeUnit.ARBITRARY, TimeZone.getDefault());
final ObjectType[] objectTypesForValue = apiKey.getConnector().getObjectTypesForValue(objectTypes);
for (ObjectType objectType : objectTypesForValue) {
List<AbstractFacet> facets = apiDataService.getApiDataFacets(apiKey, objectType, timeInterval);
storeApiData(apiKey.getGuestId(), facets);