public String replacePath(String inputURI){
  if (inputURI.contains(TemporaryDirectoryManager.DIRECTORY_TEMPLATE) && passedInDirectoryName != null && !passedInDirectoryName.isEmpty()) {
    final String mungedURI=inputURI.replace(TemporaryDirectoryManager.DIRECTORY_TEMPLATE,passedInDirectoryName);
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("URI changed to " + mungedURI);
    }
    return mungedURI;
  }
 else {
    LOGGER.debug("Returning inputURI unchanged: " + inputURI);
    return inputURI;
  }
}

public String replacePath ( String inputURI ) { if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) && passedInDirectoryName != null && ! passedInDirectoryName . isEmpty ( ) ) { final String mungedURI = inputURI . replace ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE , passedInDirectoryName ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "URI changed to " + mungedURI ) ; } return mungedURI ; } else { LOGGER . debug ( "Returning inputURI unchanged: " + inputURI ) ; return inputURI ; } }
this method replaces ( if found ) the sub - string [ unique ] in any input string with the value determined by the implementation of this interface .
