code: public static I_CmsGalleryServiceAsync createGalleryService() {
  
          I_CmsGalleryServiceAsync service;
          service = GWT.create(I_CmsGalleryService.class);
          String serviceUrl = CmsCoreProvider.get().link("org.opencms.ade.galleries.CmsGalleryService.gwt");
          ((ServiceDefTarget)service).setServiceEntryPoint(serviceUrl);
          return service;
      }
docs: Creates a gallery service instance.<p>
  
  @return the gallery service instance