Replaced Resource#isNew with Resource#isPersisted