Because the method is deprecated since 2.5 you have no choice than custom XPath constraints, or access rules on domain objects.
So there is no other way to fix this error beside setting the property to maintain. The reason that you get an warning is that you can prepare you model to a version where this functionality is removed.