changed getAccessor() to getMethod()