drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/Policy.java
public static String bind(String id, String[] bindings) {
        if (id == null)
            return "No message available";//$NON-NLS-1$
        String message = null;
        try {
            message = bundle.getString(id);
        } catch (MissingResourceException e) {
            // If we got an exception looking for the message, fail gracefully by just returning
            // the id we were looking for.  In most cases this is semi-informative so is not too bad.
            return "Missing message: " + id + "in: " + bundleName;//$NON-NLS-1$ //$NON-NLS-2$
        }
        if (bindings == null)
            return message;
        return MessageFormat.format(message, bindings);
    }
public static String bind(String id, String[] bindings) {
        if (id == null)
            return "No message available";//$NON-NLS-1$
        String message = null;
        try {
            message = bundle.getString(id);
        } catch (MissingResourceException e) {
            // If we got an exception looking for the message, fail gracefully by just returning
            // the id we were looking for.  In most cases this is semi-informative so is not too bad.
            return "Missing message: " + id + "in: " + bundleName;//$NON-NLS-1$ //$NON-NLS-2$
        }
        if (bindings == null)
            return message;
        return MessageFormat.format(message, bindings);
    }
public static String bind ( String id , String [ ] bindings ) { if ( id == null ) return "No message available" ; //$NON-NLS-1$ String message = null ; try { message = bundle . getString ( id ) ; } catch ( MissingResourceException e ) { // If we got an exception looking for the message, fail gracefully by just returning // the id we were looking for.  In most cases this is semi-informative so is not too bad. return "Missing message: " + id + "in: " + bundleName ; //$NON-NLS-1$ //$NON-NLS-2$ } if ( bindings == null ) return message ; return MessageFormat . format ( message , bindings ) ; }
Lookup the message with the given ID in this catalog and bind its
substitution locations with the given string values.
Lookup the message with the given ID in this catalog and bind its substitution locations with the given string values .