// otherwise an AtFunctionSimple is created that does multi value handling for you.
Function f;
if (ValueHolder.class.isAssignableFrom(method.getReturnType())) {
f = new AtFunctionGeneric(methodName, method);
} else {
f = new AtFunctionSimple(methodName, method);
}
ret.put(f.getImage().toLowerCase(), f);
} else {
throw new IllegalAccessError("Method " + methodName + " is either not static.");
}