NUCCORE-1246 Fix for method reflection of public rather than declared methods