code: private void writeProfile(UserProfile userProfile, Node profileNode) throws RepositoryException
     {
        for (Entry<String, String> attribute : userProfile.getUserInfoMap().entrySet())
        {
           profileNode.setProperty(ATTRIBUTE_PREFIX + attribute.getKey(), attribute.getValue());
        }
     }
docs: Write profile to storage.
  
  @param profileNode
  the node which stores profile attributes as properties with
  prefix {@link #ATTRIBUTE_PREFIX}
  @param userProfile
  the profile to store
  @throws RepositoryException
  if unexpected exception is occurred during writing