public BrowseFacet() { DSpace dspace = new DSpace(); config = dspace.getConfigurationService(); searchService = dspace .getServiceManager() .getServiceByName(SearchService.class.getName(), SearchService.class); }
public static ServiceManager getServiceManager() { if (myDSpace == null) { myDSpace = new DSpace(); } return myDSpace.getServiceManager(); }