public boolean accept(Class declaring, Method method)
{
if (declaring == null || method == null) return false;
if (!method.isAnnotationPresent(GET.class)) return false;
Cache cache = (Cache) declaring.getAnnotation(Cache.class);
NoCache nocache = (NoCache) declaring.getAnnotation(NoCache.class);
Cache methodCached = method.getAnnotation(Cache.class);
NoCache noMethodCache = method.getAnnotation(NoCache.class);
if (methodCached != null)
{
initCacheControl(methodCached);