/** * Gets a type from a {@link ArgumentStack}. * * @param context the context * @return the requested type * @throws ParameterException on error */ @BindingMatch(type = { Boolean.class, boolean.class }, behavior = BindingBehavior.CONSUMES, consumedCount = 1) public Boolean getBoolean(ArgumentStack context) throws ParameterException { return context.nextBoolean(); }