@Override
		public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
			A annotation = method.getAnnotation(clazz);
			commandNames.addAll(Arrays.asList((String[]) AnnotationUtils.getValue(annotation)));
		}
A method collector that will retrieve the (String[]) value of the {@code value()} attribute of some annotation
that methods are known to bear.
spring-xd-shell/src/test/java/org/springframework/xd/shell/util/CliAvailabilityIndicatorChecker.java