private static String normalizePath ( String path ) { int indexOfProtocol = path . indexOf ( "://" ) ; if ( indexOfProtocol > - 1 ) { path = path . substring ( indexOfProtocol + 3 ) ; int indexOfSlash = path . indexOf ( ' ' ) ; if ( indexOfSlash > - 1 ) { path = path . substring ( indexOfSlash + 1 ) ; } } else if ( path . startsWith ( "/" ) ) { path = path . substring ( 1 ) ; } return path ; }
Normalizes a registered or import path .