Changed getMethod to getDeclaredMethod to get bean methods not base methods