code: public CMAEntry publish(CMAEntry entry) {
      assertNotNull(entry, "entry");
      final String entryId = getResourceIdOrThrow(entry, "entry");
      final String environmentId = entry.getEnvironmentId();
      final String spaceId = getSpaceIdOrThrow(entry, "entry");
  
      return service.publish(
          entry.getSystem().getVersion(),
          spaceId,
          environmentId,
          entryId).blockingFirst();
    }
docs: Publish an Entry.
  
  @param entry Entry
  @return {@link CMAEntry} result instance
  @throws IllegalArgumentException if entry is null.
  @throws IllegalArgumentException if entry's id is null.
  @throws IllegalArgumentException if entry's space id is null.