From 81430cd9562dc9cb882cf9f6f980b487241b06af Mon Sep 17 00:00:00 2001
From: Roland Haeder <roland@mxchange.org>
Date: Sat, 6 Aug 2016 22:11:31 +0200
Subject: [PATCH] sorted members (maybe cherry-pick this?)

---
 .../beans/BaseAddressbookController.java      | 84 +++++++++----------
 1 file changed, 42 insertions(+), 42 deletions(-)

diff --git a/src/java/org/mxchange/addressbook/beans/BaseAddressbookController.java b/src/java/org/mxchange/addressbook/beans/BaseAddressbookController.java
index f2f07ba6..a17461f1 100644
--- a/src/java/org/mxchange/addressbook/beans/BaseAddressbookController.java
+++ b/src/java/org/mxchange/addressbook/beans/BaseAddressbookController.java
@@ -33,48 +33,6 @@ public abstract class BaseAddressbookController implements Serializable {
 	 */
 	private static final long serialVersionUID = 50_837_597_127_567_140L;
 
-	/**
-	 * Checks whether debug mode is enabled for given controller
-	 * <p>
-	 * @param controllerName Name of controller
-	 * <p>
-	 * @return Whether debug mode is enabled
-	 */
-	protected boolean isDebugModeEnabled (final String controllerName) {
-		// Parameters should be valid
-		if (null == controllerName) {
-			// Throw NPE
-			throw new NullPointerException("controllerName is null"); //NOI18N
-		} else if (controllerName.isEmpty()) {
-			// Is empty
-			throw new IllegalArgumentException("controllerName is empty"); //NOI18N
-		}
-
-		// Try to get context parameter
-		String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
-
-		// Is it set and true?
-		boolean isEnabled = ((contextParameter instanceof String) && (contextParameter.equals("true"))); //NOI18N
-
-		// Return it
-		return isEnabled;
-	}
-
-	/**
-	 * Shows a faces message for given causing exception. The message from the
-	 * exception is being inserted into the message.
-	 * <p>
-	 * @param clientId Client id to send message to
-	 * @param cause Causing exception
-	 */
-	protected void showFacesMessage (final String clientId, final Throwable cause) {
-		// Trace message
-		System.out.println(MessageFormat.format("showFacesMessage: clientId={0},cause={1} - CALLED!", clientId, cause));
-
-		// Get context and add message
-		FacesContext.getCurrentInstance().addMessage(clientId, new FacesMessage(cause.getMessage()));
-	}
-
 	/**
 	 * Returns given property key or throws an exception if not found.
 	 * <p>
@@ -116,4 +74,46 @@ public abstract class BaseAddressbookController implements Serializable {
 		return contextValue;
 	}
 
+	/**
+	 * Checks whether debug mode is enabled for given controller
+	 * <p>
+	 * @param controllerName Name of controller
+	 * <p>
+	 * @return Whether debug mode is enabled
+	 */
+	protected boolean isDebugModeEnabled (final String controllerName) {
+		// Parameters should be valid
+		if (null == controllerName) {
+			// Throw NPE
+			throw new NullPointerException("controllerName is null"); //NOI18N
+		} else if (controllerName.isEmpty()) {
+			// Is empty
+			throw new IllegalArgumentException("controllerName is empty"); //NOI18N
+		}
+
+		// Try to get context parameter
+		String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
+
+		// Is it set and true?
+		boolean isEnabled = ((contextParameter instanceof String) && (contextParameter.equals("true"))); //NOI18N
+
+		// Return it
+		return isEnabled;
+	}
+
+	/**
+	 * Shows a faces message for given causing exception. The message from the
+	 * exception is being inserted into the message.
+	 * <p>
+	 * @param clientId Client id to send message to
+	 * @param cause    Causing exception
+	 */
+	protected void showFacesMessage (final String clientId, final Throwable cause) {
+		// Trace message
+		System.out.println(MessageFormat.format("showFacesMessage: clientId={0},cause={1} - CALLED!", clientId, cause));
+
+		// Get context and add message
+		FacesContext.getCurrentInstance().addMessage(clientId, new FacesMessage(cause.getMessage()));
+	}
+
 }
-- 
2.39.5