public static MessageSource of(final Class... types) {
    checkNotNull(types);
    checkArgument(types.length > 0);
    return new ResourceBundleMessageSource().add(false, types);
  }
public static MessageSource of ( final Class ... types ) { checkNotNull ( types ) ; checkArgument ( types . length > 0 ) ; return new ResourceBundleMessageSource ( ) . add ( false , types ) ; }
Returns a {@link MessageSource} for the given types.