protected Object[] asPropertyMapEntry (final Object key, final Object val) { if (isSafeForAnItemName(key) && (val == null || BeanCoderUtils.isPrimitive(val))) { return new Object[] { key, val }; } return null; }
protected void beginBean (final Object bean) throws BeanCoderException { beginWithClass(bean); if (BeanCoderUtils.isPrimitive(bean)) // // this may happen, for map entry keys that are primitive but // whose value is not a primitive { this.currentNode() .setProperty(this.nsp + PN_PVALUE, bean.toString()); } }
if (BeanCoderUtils.isPrimitive(bean))