class ContextsManager {

    public void removeContext(UUID uuid) throws ResourceNotFoundException {
        final ContextDataPair pair = contextDataStorage.get(uuid, false);
        if (pair != null) {
            getStrategy(pair).deleteContext(pair.getContext(), pair.getData());
        }
        contextDataStorage.delete(uuid);
        contextExecutorService.cancelContext(uuid);
    }

}