// Process the fetch group annotations.
// Look for a @FetchGroup.
if (isAnnotationPresent(FetchGroups.class)) {
for (Object fetchGroup : (Object[]) getAnnotation(FetchGroups.class).getAttributeArray("value")) {
processFetchGroup(new FetchGroupMetadata((MetadataAnnotation) fetchGroup, getAccessibleObject()), fetchGroups);
}
}
// Look for a @FetchGroup.
if (isAnnotationPresent(FetchGroup.class)) {
processFetchGroup(new FetchGroupMetadata(getAnnotation(FetchGroup.class), getAccessibleObject()), fetchGroups);
}
// Now process all the fetch groups we found to the descriptor only
// if weaving is enabled or if the descriptors java class for this
// accessor implements the FetchGroupTracker interface.