public static Method findMethod(Class<?> entityClass,String name,Class<?>... paramClass) throws NoSuchMethodException {
  Method m=entityClass.getMethod(name,paramClass);
  int modifiers=m.getModifiers();
  if (Modifier.isAbstract(modifiers) || m.isAnnotationPresent(Transient.class) && !m.isAnnotationPresent(ComputedAttribute.class) && !m.isAnnotationPresent(ComputedRelationship.class)) {
    throw new NoSuchMethodException(name);
  }
  return m;
}

public static Method findMethod ( Class < ? > entityClass , String name , Class < ? > ... paramClass ) throws NoSuchMethodException { Method m = entityClass . getMethod ( name , paramClass ) ; int modifiers = m . getModifiers ( ) ; if ( Modifier . isAbstract ( modifiers ) || m . isAnnotationPresent ( Transient . class ) && ! m . isAnnotationPresent ( ComputedAttribute . class ) && ! m . isAnnotationPresent ( ComputedRelationship . class ) ) { throw new NoSuchMethodException ( name ) ; } return m ; }
find an arbitrary method .
