public String preProcessUserInput(String userInput,IStateAccess state,boolean isReq) throws InstallException {
  String procRes=null;
  if (isReq) {
    procRes=preProcUserInputIfRequired(userInput,state);
  }
 else {
    procRes=preProcUserInputIfOptional(userInput,state);
  }
  return procRes;
}

public String preProcessUserInput ( String userInput , IStateAccess state , boolean isReq ) throws InstallException { String procRes = null ; if ( isReq ) { procRes = preProcUserInputIfRequired ( userInput , state ) ; } else { procRes = preProcUserInputIfOptional ( userInput , state ) ; } return procRes ; }
helper function to pre - process user input
