protected String[] getConversationsWithoutInheritance(Class<?> clazz,
String actionSuffix) {
List<String> conversations = new ArrayList<String>();
if (clazz.isAnnotationPresent(ConversationController.class)) {
ConversationController controller = clazz
.getAnnotation(ConversationController.class);
String[] newConversations = controller.conversations();
if (controller.value().equals(ConversationController.DEFAULT_VALUE)) {
if (newConversations.length == 0) {
newConversations = new String[] { NamingUtil
.getConventionName(clazz, actionSuffix) };
}
} else {
conversations.add(controller.value());
}
conversations.addAll(Arrays.asList(newConversations));
}
return conversations.toArray(new String[] {});
}