public static CmsGallerySearchBean getSearch(HttpServletRequest request, CmsGalleryDataBean config) {

        CmsGalleryService srv = new CmsGalleryService();
        srv.setCms(CmsFlexController.getCmsObject(request));
        srv.setRequest(request);
        CmsGallerySearchBean result = null;
        try {
            result = srv.getSearch(config);
        } finally {
            srv.clearThreadStorage();
        }
        return result;
    }
public static CmsGallerySearchBean getSearch ( HttpServletRequest request , CmsGalleryDataBean config ) { CmsGalleryService srv = new CmsGalleryService ( ) ; srv . setCms ( CmsFlexController . getCmsObject ( request ) ) ; srv . setRequest ( request ) ; CmsGallerySearchBean result = null ; try { result = srv . getSearch ( config ) ; } finally { srv . clearThreadStorage ( ) ; } return result ; }
Returns the initial search data.<p>

@param request the current request
@param config the gallery configuration

@return the search data