private static String getText(String key, Object... _args) {
        String[] args = new String[_args.length];
        for (int i=0; i<_args.length; i++) {
            args[i] = "" + _args[i];
        }
        if (messageRBapt == null || messageRBjavac == null )
            initResource();
        try {
            return MessageFormat.format(messageRBapt.getString("apt." + key),
                                        (Object[]) args);
        } catch (MissingResourceException e) {
            try {
                return MessageFormat.format(messageRBjavac.getString("javac." + key),
                                            (Object[]) args);
            } catch (MissingResourceException f) {
                String msg = "apt or javac message file broken: key={0} "
                    + "arguments={1}, {2}";
                return MessageFormat.format(msg, (Object[]) args);
            }
        }
    }