}
private <K> InternalFactHandle lookupHandleForWrapper( K core ) {
for ( WorkingMemoryEntryPoint ep : workingMemory.getEntryPoints().values() ) {
ObjectStore store = ((InternalWorkingMemoryEntryPoint) ep).getObjectStore();
Iterator iter = store.iterateFactHandles();
while ( iter.hasNext() ) {
InternalFactHandle handle = (InternalFactHandle) iter.next();
if ( handle.isTraitable() && handle.getObject() instanceof CoreWrapper && ( (CoreWrapper) handle.getObject() ).getCore() == core ) {
return handle;
}