private String getRandomPathSuffix ( StructuralNode node , URI uri ) throws URIException { String resultSuffix = getChildSuffix ( node , true ) ; String path = "" ; path = ( uri . getPath ( ) == null ) ? "" : uri . getPath ( ) ; path = path + ( path . endsWith ( "/" ) ? "" : "/" ) + Long . toString ( getRndPositiveLong ( ) ) ; path = path + resultSuffix ; return path ; }
Get a random path relative to the current entity . Whenever possible use a suffix exist in the children according to a priority of staticSuffixList .