Remove the private doOperationSafely(:ExceptionThrowingOperation):T method. Both the ExceptionThrowingOperation interface and doOperationSafely(..) method can be replaced by o.s.geode.core.util.ObjectUtils. Refactor the existing invokeMethod(..) method; change access modifier to package-private.