private Method findToStringMethod(Class<?> cls,String methodName){
  Method m;
  try {
    m=cls.getMethod(methodName);
  }
 catch (  NoSuchMethodException ex) {
    throw new IllegalArgumentException(ex);
  }
  if (Modifier.isStatic(m.getModifiers())) {
    throw new IllegalArgumentException("Method must not be static: " + methodName);
  }
  return m;
}

private Method findToStringMethod ( Class < ? > cls , String methodName ) { Method m ; try { m = cls . getMethod ( methodName ) ; } catch ( NoSuchMethodException ex ) { throw new IllegalArgumentException ( ex ) ; } if ( Modifier . isStatic ( m . getModifiers ( ) ) ) { throw new IllegalArgumentException ( "Method must not be static: " + methodName ) ; } return m ; }
finds the conversion method .
