Fixing UnsupportedOperationException while searching a Resource (#95).