final Class<?> clazz = Class.forName(packge.getName() + "." + entity.getName());
final Annotation[] annotations = clazz.getAnnotations();
for (final Annotation annotation : annotations) {
if (annotation.annotationType().equals(NamedQuery.class)) {
final NamedQuery nq = (NamedQuery) annotation;
entity.getQueries().add(new QueryVO(nq.name(), nq.query()));
} else if (annotation.annotationType().equals(NamedQueries.class)) {
final NamedQueries nqs = (NamedQueries) annotation;
for (final NamedQuery nq : nqs.value()) {
entity.getQueries().add(new QueryVO(nq.name(), nq.query()));
}