public boolean apply(RunningInstance instance) { logger.trace("looking for instance %s", instance); try { instance = refresh(instance); return true; } catch (ResourceNotFoundException e) { return false; } catch (NoSuchElementException e) { return false; } }