import java.io.Serializable;
import java.security.Principal;
import java.text.MessageFormat;
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
import javax.faces.FacesException;
-import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.jms.Connection;
import javax.jms.JMSException;
if (null == message) {
// Throw NPE
throw new NullPointerException("message is null"); //NOI18N
- } else if (null == this.getMessageProducer()) {
+ } else if (this.getMessageProducer() == null) {
// Throw NPE again
throw new NullPointerException("this.messageProvider is null"); //NOI18N
}