protected Object pathSynch ( Path path ) { Object newref = new Object ( ) ; Object oldref = locks . putIfAbsent ( path . getPath ( ) , newref ) ; return null != oldref ? oldref : newref ; }
Return an object that can be synchronized on for the given path .