void visitMethods(Object target) throws OpsException {
for (Method method : target.getClass().getMethods()) {
Class<?> returnType = method.getReturnType();
if (returnType.equals(MetricConfig.class)) {
MetricConfig metricConfig;
try {
metricConfig = (MetricConfig) method.invoke(target, (Object[]) null);
} catch (IllegalArgumentException e) {
throw new OpsException("Error invoking method: " + method, e);
} catch (IllegalAccessException e) {