Update processMethod so it doesn't depend on Java 1.8