code: void createEntry(Class<?> objectType, Serializable id, String accessId, AccessType accessType) {
          if (accessType == AccessType.None) {
              return;
          }
  
          Session session = sessionFactory.getCurrentSession();
          AccessControlEntry accessControlEntry = new AccessControlEntry();
  
          accessControlEntry.setObjectType(objectType.getSimpleName());
          accessControlEntry.setObjectId(id.toString());
          accessControlEntry.setAccessibleBy(accessId);
          accessControlEntry.setAccessType(accessType.shortName());
  
          session.save(accessControlEntry);
      }
docs: TODO: check if object already exists -- if yes, modify accessType