} else {
Method javaMethod = fastMethod.getJavaMethod();
int paramsCount = javaMethod.getParameterTypes().length;
if (paramsCount > 0) {
throw new UnadaptableModuleException(String.format(
"Could not adapt object to module: type=%s, name=%s, class=%s: "
+ "method %s has %d parameters, but no DataResolvers defined.", moduleInfo.getType(),
moduleInfo.getName(), javaMethod.getDeclaringClass().getName(), javaMethod.getName(),
paramsCount));
}