* @param ec
* @param q
*/
public static EOQualifier localInstancesInQualifier(EOEditingContext ec, EOQualifier q) {
if (q instanceof EOKeyValueQualifier) {
EOKeyValueQualifier q1 = (EOKeyValueQualifier)q;
if (q1.value() instanceof EOEnterpriseObject) {
EOEnterpriseObject eo = (EOEnterpriseObject)q1.value();
if (eo.editingContext() != ec && !ERXEOControlUtilities.isNewObject(eo)) {
eo = EOUtilities.localInstanceOfObject(ec, eo);
EOKeyValueQualifier qual = new EOKeyValueQualifier(q1.key(), q1.selector(), eo);
return qual;
}
}
} else if (q instanceof EOAndQualifier || q instanceof EOOrQualifier) {
NSArray oriQualifiers = (NSArray)NSKeyValueCoding.Utility.valueForKey(q, "qualifiers");