class JcrValue implements javax.jcr.Value {

    @Override
    public boolean getBoolean() throws ValueFormatException {
        try {
            boolean convertedValue = factories().getBooleanFactory().create(value);
            return convertedValue;
        } catch (RuntimeException error) {
            throw createValueFormatException(boolean.class);
        }
    }

      JcrValue( ValueFactories factories,
              int type,
              Object value );
      JcrValue( ValueFactories factories,
              Value value );

}