code: public void setPersistentAttributes(Map<String, Object> persistentAttributes) {
          if (persistenceAdapter == null) {
              throw new IllegalStateException("Attempting to set persistence attributes without configured persistence adapter");
          }
          this.persistentAttributes = persistentAttributes;
          persistenceAttributesSet = true;
      }
docs: Sets persistent attributes. The attributes set using this method will replace any existing persistent attributes,
  but the changes will not be persisted back until {@link #savePersistentAttributes()} is called. Use this method
  when bulk replacing attributes is desired. An exception is thrown if this method is called when a
  {@link PersistenceAdapter} is not configured on the SDK.
  
  @param persistentAttributes persistent attributes to set
  @throws IllegalStateException if no {@link PersistenceAdapter} is configured