private Compass compass;
private CompassGps compassGps;
private GrailsApplication grailsApplication;
public SearchableMethod getMethod(final Class clazz, String methodName) {
AbstractSearchableMethod method = (AbstractSearchableMethod) getMethod(methodName);
Map options = new HashMap(method.getDefaultOptions()); // clone to avoid corrupting original
options.put("match", clazz);
method.setDefaultOptions(options);
return method;
}