Command command = findAnnotation(method, Command.class);
if (command != null) {
addCommandMethod(method, command);
} else {
// Check whether this method is a "query" method.
Query query = findAnnotation(method, Query.class);
if (query != null) {
addQueryMethod(method, query);
}
}
}