public void invoke(String method, Object... params) {
Preconditions.checkNotNull(method, "method must not be null");
setProjectVars();
MethodDesc methodDesc = OpenBean.getClassDesc(getClass()).getMethodDesc(method, false, params);
Configuration projectAnnotation = projectConf();
Configuration methodAnnotation = methodDesc.getMethod().getAnnotation(Configuration.class);
configureWithAnnotations(methodAnnotation, projectAnnotation);
global.put(bear.useUI, useUI(firstNonNull(methodAnnotation, projectAnnotation)));
Object result = methodDesc.invoke(this, params);
System.out.println("returned result: " + result);
}