Use RAMSession.put(IRAMSessionObject, IProgressMonitor) to commit changes to a new or updated community object.
//Update
community.setName("Updated Community");
community.setDescription("Updated Community Description");
session.put(community, new NullProgressMonitor());