}
@Override
public Association getAssociation(AssociationKey key, AssociationContext associationContext) {
final Cache<SerializableAssociationKey> associationCache = datastoreProvider.getAssociationCache();
final Element element = associationCache.get( new SerializableAssociationKey( key ) );
if ( element == null ) {
return null;
}
else {
@SuppressWarnings("unchecked")
Map<SerializableRowKey, Map<String, Object>> associationRows = (Map<SerializableRowKey, Map<String, Object>>) element.getObjectValue();
return new Association( new SerializableMapAssociationSnapshot( associationRows ) );
}
}