private void throwUsernamePasswordStyleException(final Throwable cause) throws InvalidOptionValueException {
  final char preferredPrefix=OptionsMap.getPreferredOptionPrefix();
  final String causeMessage=(cause != null) ? cause.getLocalizedMessage() : "";
  final String messageFormat=Messages.getString("UsernamePasswordValueOption.LoginHelpFormat");
  final String message=MessageFormat.format(messageFormat,causeMessage,getMatchedAlias(),preferredPrefix);
  throw new InvalidOptionValueException(message);
}

private void throwUsernamePasswordStyleException ( final Throwable cause ) throws InvalidOptionValueException { final char preferredPrefix = OptionsMap . getPreferredOptionPrefix ( ) ; final String causeMessage = ( cause != null ) ? cause . getLocalizedMessage ( ) : "" ; final String messageFormat = Messages . getString ( "UsernamePasswordValueOption.LoginHelpFormat" ) ; final String message = MessageFormat . format ( messageFormat , causeMessage , getMatchedAlias ( ) , preferredPrefix ) ; throw new InvalidOptionValueException ( message ) ; }
throws an error about invalid username and password syntax , integrating text from an optional cause .
