class BooleanConverter extends AbstractAttributeConverter {

    /**
     * <p>Constructor for BooleanConverter.</p>
     */
    public BooleanConverter() {
        super(Boolean.class);
    }

    /** {@inheritDoc} */
    @Override
    protected Boolean internalConvert(final Object attribute) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override
    protected Boolean defaultValue() {
        return Boolean.FALSE;
    }
}

        if (attribute instanceof String) {
            return "1".equals(attribute) || "true".equals(attribute);
        } else if (attribute instanceof Number) {
            return Integer.valueOf(1).equals(attribute);
        }
        return null;
    
<methods>public java.lang.Boolean accept(java.lang.String) ,public java.lang.Object convert(java.lang.Object) <variables>private final non-sealed Class<? extends java.lang.Object> clazz