//enumerating all instances of associaation class
Enumeration instancesOfAssociation=_handle.enumerateInstances(copAssociationClass, true, true, true, true, null);
//iterating over all instances of association class
while(instancesOfAssociation.hasMoreElements()){
CIMInstance inst=(CIMInstance)instancesOfAssociation.nextElement();
//check to see if the source instance is same as current Anchor Object
CIMProperty srcinstcop=inst.getProperty(role);//this will return partial cop of src instance
CIMObjectPath copSrcInstFull=CIMObjectPath.toCop(srcinstcop.getValue().getValue().toString());
if(logger.isLoggable(Level.FINE))
logger.fine(Thread.currentThread().getName()+" Anchor cop "+cop);
if(equalCOP(copSrcInstFull,cop)){
//get and add associated result instance to vector
CIMProperty cimprop=inst.getProperty(resultRole);
CIMObjectPath coop= CIMObjectPath.toCop(cimprop.getValue().getValue().toString());
CIMObjectPath copAssociatedInstance=new CIMObjectPath(resultInstancesClassFilter,classPath);
copAssociatedInstance.setKeys(coop.getKeys());
//Reference ref=new Reference(copAssociatedInstance.toString());
instanceREFList.add(copAssociatedInstance);