// TODO verify that association exists. See former VerifyFetchProfileReferenceSecondPass
 public static void bind(MetadataImpl metadata, Index jandex) {
   for (AnnotationInstance fetchProfile : jandex.getAnnotations(HibernateDotNames.FETCH_PROFILE)) {
     bind(metadata, fetchProfile);
   }
   for (AnnotationInstance fetchProfiles :
       jandex.getAnnotations(HibernateDotNames.FETCH_PROFILES)) {
     for (AnnotationInstance fetchProfile : JandexHelper.getValueAsArray(fetchProfiles, "value")) {
       bind(metadata, fetchProfile);
     }
   }
 }
 @Override
 public void bindMappingDependentMetadata(MetadataSources sources) {
   TableBinder.bind(metadata, index);
   FetchProfileBinder.bind(metadata, index);
   QueryBinder.bind(metadata, index);
   FilterDefBinder.bind(metadata, index);
 }