public ReturnCode showMessage(LaunchArguments launchArgs) {
        String message = launchArgs.getOption("message");
        try {
            String messageString = BootstrapConstants.messages.getString(message);

            List<String> messageArgs = launchArgs.getExtraArguments();
            if (messageArgs.isEmpty()) {
                System.out.println(messageString);
            } else {
                Object[] messageArgsArray = messageArgs.toArray(new Object[messageArgs.size()]);
                System.out.println(MessageFormat.format(messageString, messageArgsArray));
            }
        } catch (MissingResourceException e) {
            return ReturnCode.BAD_ARGUMENT;
        }
        return ReturnCode.OK;
    }
public ReturnCode showMessage ( LaunchArguments launchArgs ) { String message = launchArgs . getOption ( "message" ) ; try { String messageString = BootstrapConstants . messages . getString ( message ) ; List < String > messageArgs = launchArgs . getExtraArguments ( ) ; if ( messageArgs . isEmpty ( ) ) { System . out . println ( messageString ) ; } else { Object [ ] messageArgsArray = messageArgs . toArray ( new Object [ messageArgs . size ( ) ] ) ; System . out . println ( MessageFormat . format ( messageString , messageArgsArray ) ) ; } } catch ( MissingResourceException e ) { return ReturnCode . BAD_ARGUMENT ; } return ReturnCode . OK ; }
@param launchArgs LaunchArguments
@return ReturnCode.OK or ReturnCode.BAD_ARGUMENT