code: public JsonNode getAttributesAsJson() {
          if (attributes == null) {
              return NullNode.instance;
          }
          Lock lock = lockForRead();
          try {
              return SerializationUtils.toJson(attributes);
          } finally {
              lock.unlock();
          }
      }
docs: Get all BO's attributes as a {@link JsonNode}.
  
  @return BO's attributes as a {@link JsonNode}, {@link NullNode} is returned if BO's
  attribute-map is null
  @since 0.10.0