if (frames == null) return null;
if (frames == null) { if (log.isDebugEnabled()) log.debug(frame+ " has no relations of type " +entry.relation+ " role=" +entry.role); return null; }  if (log.isDebugEnabled()) log.debug(frames.size() + " matches for relation " +entry.relation+ " role=" +entry.role);
    private Object getNextValue(Frame frame, int index)    {	if (index == forks.length) return frame.getValue(slot);	Fork entry = forks[index];	Set frames = frame.findRelations(entry.role, entry.relation);	if (frames == null) return null;	Iterator itr = frames.iterator();	while (itr.hasNext()) {	    Frame next = (Frame) itr.next();	    Object result = getNextValue(next, ++index);	    if (result != null) return result;	}	return null;    }