public static synchronized void releaseProfile(final RoutingContext rc) {
        for (final ProfileCache pc : apc) {
            if (pc != null && rc.expctxWay == pc.expctxWay && rc.expctxNode == pc.expctxNode) { // only the thread that holds the cached instance can release it
                pc.profilesBusy = false;
                break;
            }
        }
        rc.expctxWay = null;
        rc.expctxNode = null;
    }
Container for routig configs

@author ab
main/src/main/java/cgeo/geocaching/brouter/core/ProfileCache.java