code: public Map<String, Object> write(Bean bean) {
          JodaBeanUtils.notNull(bean, "bean");
          return writeBean(bean, bean.getClass());
      }
docs: Writes the bean to a string.
  
  @param bean  the bean to output, not null
  @return the JSON, not null