if ((elem == null) || (pathCount > 20)) {
if ((elem == null) || (pathCount > 50)) {
    private final void composeHref(Object elem, StringBuffer b, int pathCount) {        if ((elem == null) || (pathCount > 20)) {            return;        }        if ((rootPrototype != null) && rootPrototype.equals(getPrototypeName(elem))) {            return;        }        Object parent = getParentElement(elem);        if (parent == null) {            return;        }        composeHref(getParentElement(elem), b, pathCount++);        b.append(UrlEncoded.encode(getElementName(elem)));        b.append("/");    }