toIds(Resource resource, ResourceMapping resourceMapping, boolean idsMustExist) Gets the id properties based on the resource mapping from the give resource.
Gets the id properties based on the resource mapping from the give resource. If
must the flag idsMustExists is set, will throw an exception if id value not found,
otherise will return null.