for(int i = 0; i < methods.length; i++) if (methods[i].getName().equals(operation)) return methods[i]; return null;