code: protected boolean isSetterMethod(Method method) {
          Matcher matcher = _setterRegex.matcher(method.getName());
          if (matcher.matches()) {
  
              if (Modifier.isStatic(method.getModifiers())) return false;
              if (!Modifier.isPublic(method.getModifiers())) return false;
              if (!Void.TYPE.equals(method.getReturnType())) return false;
  
              // method parameter checks
              Class[] params = method.getParameterTypes();
              if (params.length != 1) return false;
              if (TypeMappingsFactory.TYPE_UNKNOWN == _tmf.getTypeId(params[0])) return false;
  
              return true;
          }
          return false;
      }
docs: Determine if the given method is a java bean setter method.
  @param method Method to check
  @return True if the method is a setter method.