// is this a getter is "is" method
if (method.getParameterTypes().length == 0 && method.getReturnType() != Void.TYPE) {
if (methodName.length() > 3 && methodName.startsWith("get") && !methodName.equals("getClass")) {
String propertyName = decapitalizePropertyName(methodName.substring(3));
return new KernelGetAttributeInvoker(kernel, propertyName);
} else if (methodName.length() > 2 && methodName.startsWith("is")) {
String propertyName = decapitalizePropertyName(methodName.substring(2));
return new KernelGetAttributeInvoker(kernel, propertyName);
}
}
// is this a setter method
if (method.getParameterTypes().length == 1 &&