<CONTEXT>for (int i = 0; (wires != null) && (i < wires.length); i++)</BUG>{Object result = (isClass)<extra_id_0>{Object result = (isClass)<BUG>? (Object) wires[i].getClass(name): (Object) wires[i].getResource(name);</BUG>if (result != null)</CONTEXT>
return parent;}private Object searchImports(String name, boolean isClass)throws ClassNotFoundException, ResourceNotFoundExceptionList<Wire> wires = getWires();for (int i = 0; (wires != null) && (i < wires.size()); i++)? (Object) wires.get(i).getClass(name): (Object) wires.get(i).getResource(name);