* @return method that matches the criteria or null if not found
* @see org.jboss.wsf.common.injection.finders.InjectionMethodFinder
*/
private static Method getMethod(final InjectionMetaData injectionMD, final Class<?> clazz)
{
final Collection<Method> result = new InjectionMethodFinder(injectionMD).process(clazz);
return result.isEmpty() ? null : result.iterator().next();
}