public Map<String, Object> findHostsForDataStore(String filter, boolean showArchived, int offset, int count) throws PortalException, SystemException, DotDataException, DotSecurityException {
if(filter.endsWith("*"))
filter = filter.substring(0, filter.length() - 1);
WebContext ctx = WebContextFactory.get();
HttpServletRequest req = ctx.getHttpServletRequest();
User user = userWebAPI.getLoggedInUser(req);
HostAPI hostAPI = APILocator.getHostAPI();
List<Host> hosts = hostAPI.findAll(user, userWebAPI.isLoggedToFrontend(req));
List<Map<String, Object>> hostResults = new ArrayList<Map<String, Object>>();