// Path: framework/src/main/java/org/demoiselle/annotation/literal/NameQualifier.java
// @SuppressWarnings("all")
// public class NameQualifier extends AnnotationLiteral<Name> implements Name {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private final String value;
// 
// 	/**
// 	 * Constructor with string value of name literal.
// 	 *
// 	 * @param value value of name literal.
// 	 */
// 	public NameQualifier(String value) {
// 		this.value = value;
// 	}
// 
// 	@Override
// 	public String value() {
// 		return this.value;
// 	}
// }


import org.demoiselle.stereotype.ApplicationException;
import org.demoiselle.annotation.Priority;
import org.demoiselle.annotation.literal.NameQualifier;
import org.demoiselle.message.SeverityType;
import org.demoiselle.util.ResourceBundle;
import javax.enterprise.inject.spi.AnnotatedMethod;
import javax.enterprise.inject.spi.CDI;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Logger;
import static java.util.logging.Level.SEVERE;
		} else {
			switch (ann.severity()) {
				case INFO:
					getLogger().info(cause.getMessage());
					break;

				case WARN:
					getLogger().warning(cause.getMessage());
					break;

				default:
					getLogger().log(SEVERE, getBundle().getString("processing-fail"), cause);
					break;
			}
		}
	}

	private static <T> Integer getPriority(AnnotatedMethod<T> annotatedMethod) {
		Integer priority = Priority.MIN_PRIORITY;

		Priority annotation = annotatedMethod.getAnnotation(Priority.class);
		if (annotation != null) {
			priority = annotation.value();
		}

		return priority;
	}

	protected ResourceBundle getBundle() {
		if (bundle == null) {
// Path: framework/src/main/java/org/demoiselle/annotation/literal/NameQualifier.java
// @SuppressWarnings("all")
// public class NameQualifier extends AnnotationLiteral<Name> implements Name {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private final String value;
// 
// 	/**
// 	 * Constructor with string value of name literal.
// 	 *
// 	 * @param value value of name literal.
// 	 */
// 	public NameQualifier(String value) {
// 		this.value = value;
// 	}
// 
// 	@Override
// 	public String value() {
// 		return this.value;
// 	}
// }


// Path: framework/src/main/java/org/demoiselle/internal/implementation/AnnotatedMethodProcessor.java
import org.demoiselle.stereotype.ApplicationException;
import org.demoiselle.annotation.Priority;
import org.demoiselle.annotation.literal.NameQualifier;
import org.demoiselle.message.SeverityType;
import org.demoiselle.util.ResourceBundle;
import javax.enterprise.inject.spi.AnnotatedMethod;
import javax.enterprise.inject.spi.CDI;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Logger;
import static java.util.logging.Level.SEVERE;

		} else {
			switch (ann.severity()) {
				case INFO:
					getLogger().info(cause.getMessage());
					break;

				case WARN:
					getLogger().warning(cause.getMessage());
					break;

				default:
					getLogger().log(SEVERE, getBundle().getString("processing-fail"), cause);
					break;
			}
		}
	}

	private static <T> Integer getPriority(AnnotatedMethod<T> annotatedMethod) {
		Integer priority = Priority.MIN_PRIORITY;

		Priority annotation = annotatedMethod.getAnnotation(Priority.class);
		if (annotation != null) {
			priority = annotation.value();
		}

		return priority;
	}

	protected ResourceBundle getBundle() {
		if (bundle == null) {
			bundle = CDI.current().select(ResourceBundle.class, new NameQualifier("demoiselle-core-bundle")).get();