src/org/kocakosm/pitaya/util/Booleans.java
public static Boolean valueOf(String bool)
	{
		String s = bool.replaceAll("\\s", "");
		boolean b = "true".equalsIgnoreCase(s)
			|| "yes".equalsIgnoreCase(s)
			|| "on".equalsIgnoreCase(s)
			|| "1".equalsIgnoreCase(s);
		return b ? TRUE : FALSE;
	}
public static Boolean valueOf(String bool)
	{
		String s = bool.replaceAll("\\s", "");
		boolean b = "true".equalsIgnoreCase(s)
			|| "yes".equalsIgnoreCase(s)
			|| "on".equalsIgnoreCase(s)
			|| "1".equalsIgnoreCase(s);
		return b ? TRUE : FALSE;
	}
Parses the given {@code String} into a {@code Boolean}. This method
returns {@code true} if the given {@code String} contains "true",
"yes", "1" or "on".

@param bool the {@code String} to parse.

@return the parsed {@code Boolean}.

@throws NullPointerException if {@code bool} is {@code null}.