@SuppressWarnings({ "rawtypes" })
public void setupQueryStuff(MetaAbstractClass classMeta) {
Class<?> clazz = classMeta.getMetaClass();
NoSqlQuery annotation = clazz.getAnnotation(NoSqlQuery.class);
NoSqlQueries annotation2 = clazz.getAnnotation(NoSqlQueries.class);
List<NoSqlQuery> theQueries = new ArrayList<NoSqlQuery>();
if(annotation2 != null) {
NoSqlQuery[] queries = annotation2.value();
List<NoSqlQuery> asList = Arrays.asList(queries);
theQueries.addAll(asList);
}
if(annotation != null)
theQueries.add(annotation);