}
if (clazz.isAnnotationPresent(NamedNativeQuery.class))
{
NamedNativeQuery ann = (NamedNativeQuery) clazz.getAnnotation(NamedNativeQuery.class);
appMetadata.addQueryToCollection(ann.name(), ann.query(), true, clazz);
}
if (clazz.isAnnotationPresent(NamedNativeQueries.class))
{
NamedNativeQueries ann = (NamedNativeQueries) clazz.getAnnotation(NamedNativeQueries.class);