add utility getMethod()