question: private static String expandSystemIdStrictOn ( String systemId , String baseSystemId ) throws URI . MalformedURIException { URI systemURI = new URI ( systemId , true ) ; if ( systemURI . isAbsoluteURI ( ) ) { return systemId ; } URI baseURI = null ; if ( baseSystemId == null || baseSystemId . length ( ) == 0 ) { baseURI = getUserDir ( ) ; } else { baseURI = new URI ( baseSystemId , true ) ; if ( ! baseURI . isAbsoluteURI ( ) ) { baseURI . absolutize ( getUserDir ( ) ) ; } } systemURI . absolutize ( baseURI ) ; return systemURI . toString ( ) ; }
target:  Helper method for expandSystemId(String,String,boolean):String