public static String adjustToRelativeDirectoryContext(final String path) {
        // Return nulls
        if (path == null) {
            return path;
        }

        // Strip absolute form
        final String removedPrefix = optionallyRemovePrecedingSlash(path);
        // Add end of context slash
        final String addedPostfix = optionallyAppendSlash(removedPrefix);

        // Return
        return addedPostfix;
    }
public static String adjustToRelativeDirectoryContext ( final String path ) { if ( path == null ) { return path ; } final String removedPrefix = optionallyRemovePrecedingSlash ( path ) ; final String addedPostfix = optionallyAppendSlash ( removedPrefix ) ; return addedPostfix ; }
Adjusts the specified path to relative form:

1) Removes, if present, a preceding slash 2) Adds, if not present, a trailing slash

Null arguments are returned as-is

@param path