Code updated, moved checkexist method from Patientassignmentresource to Provenance class, checkexist method is used to check if the object(resource) is exist in TDB or not.We move it to Provenance class, so for other resources, if we need to check exist, we dont need to re-write the code to search TDB again.