// Path: src/org/sleeksnap/Constants.java
// public class Constants {
// 	public static class Application {
// 		public static final String NAME = "Sleeksnap";
// 		public static final String URL = "http://sleeksnap.com";
// 		public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// 	}
// 
// 	public static class Configuration {
// 		public static final String FILE_NAME = Application.NAME.toLowerCase()
// 				+ ".conf";
// 
// 		public static final int DEFAULT_MAX_RETRIES = 3;
// 		
// 		public static final String DEFAULT_LANGUAGE = "english";
// 	}
// 
// 	public static class Resources {
// 		public static final String LOGO_PATH = "/logo.png";
// 		public static final String ICON_PATH = "/icon.png";
// 		public static final String ICON_BUSY_PATH = "/icon-busy.png";
// 		
// 		public static final URL ICON = Util.getResourceByName(Resources.ICON_PATH);
// 		public static final URL ICON_BUSY = Util.getResourceByName(Resources.ICON_BUSY_PATH);
// 		
// 		public static final Image ICON_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON);
// 		public static final Image ICON_BUSY_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON_BUSY);
// 	}
// 	
// 	public static class Version {
// 		public static final int MAJOR = 1;
// 		public static final int MINOR = 4;
// 		public static final int PATCH = 9;
// 		
// 		private static String versionString = null;
// 		
// 		public static String getVersionString() {
// 			if(versionString == null) {
// 				// Construct string normally
// 				versionString = MAJOR + "." + MINOR + "." + PATCH;
// 			}
// 			return  versionString;
// 		}
// 	}
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Application {
// 	public static final String NAME = "Sleeksnap";
// 	public static final String URL = "http://sleeksnap.com";
// 	public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Version {
// 	public static final int MAJOR = 1;
// 	public static final int MINOR = 4;
// 	public static final int PATCH = 9;
// 		
// 	private static String versionString = null;
// 		
// 	public static String getVersionString() {
// 		if(versionString == null) {
// 			// Construct string normally
// 			versionString = MAJOR + "." + MINOR + "." + PATCH;
// 		}
// 		return  versionString;
// 	}
// }


import org.sleeksnap.Constants;
import org.sleeksnap.Constants.Application;
import org.sleeksnap.Constants.Version;
import java.awt.Desktop;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.io.File;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.UIManager;
			arguments.put(key, value);
		}
		return arguments;
	}

	/**
	 * Set the working directory, used when Sleeksnap is self-contained (Uses a
	 * directory which you can have on a flash drive)
	 * 
	 * @param workingDirectory
	 *            The directory
	 */
	public static void setWorkingDirectory(File workingDirectory) {
		workDir = workingDirectory;
	}

	/**
	 * Trim the string's start/finish of the specified character
	 * 
	 * @param str
	 *            The string
	 * @param ch
	 *            The character
	 * @return The trimmed string
	 */
	public static String trim(String str, final char ch) {
		if ((str == null) || str.isEmpty())
			return str;
		else if (str.length() == 1)
			return str.charAt(0) == ch ? "" : str;
// Path: src/org/sleeksnap/Constants.java
// public class Constants {
// 	public static class Application {
// 		public static final String NAME = "Sleeksnap";
// 		public static final String URL = "http://sleeksnap.com";
// 		public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// 	}
// 
// 	public static class Configuration {
// 		public static final String FILE_NAME = Application.NAME.toLowerCase()
// 				+ ".conf";
// 
// 		public static final int DEFAULT_MAX_RETRIES = 3;
// 		
// 		public static final String DEFAULT_LANGUAGE = "english";
// 	}
// 
// 	public static class Resources {
// 		public static final String LOGO_PATH = "/logo.png";
// 		public static final String ICON_PATH = "/icon.png";
// 		public static final String ICON_BUSY_PATH = "/icon-busy.png";
// 		
// 		public static final URL ICON = Util.getResourceByName(Resources.ICON_PATH);
// 		public static final URL ICON_BUSY = Util.getResourceByName(Resources.ICON_BUSY_PATH);
// 		
// 		public static final Image ICON_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON);
// 		public static final Image ICON_BUSY_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON_BUSY);
// 	}
// 	
// 	public static class Version {
// 		public static final int MAJOR = 1;
// 		public static final int MINOR = 4;
// 		public static final int PATCH = 9;
// 		
// 		private static String versionString = null;
// 		
// 		public static String getVersionString() {
// 			if(versionString == null) {
// 				// Construct string normally
// 				versionString = MAJOR + "." + MINOR + "." + PATCH;
// 			}
// 			return  versionString;
// 		}
// 	}
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Application {
// 	public static final String NAME = "Sleeksnap";
// 	public static final String URL = "http://sleeksnap.com";
// 	public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Version {
// 	public static final int MAJOR = 1;
// 	public static final int MINOR = 4;
// 	public static final int PATCH = 9;
// 		
// 	private static String versionString = null;
// 		
// 	public static String getVersionString() {
// 		if(versionString == null) {
// 			// Construct string normally
// 			versionString = MAJOR + "." + MINOR + "." + PATCH;
// 		}
// 		return  versionString;
// 	}
// }


// Path: src/org/sleeksnap/util/Util.java
import org.sleeksnap.Constants;
import org.sleeksnap.Constants.Application;
import org.sleeksnap.Constants.Version;
import java.awt.Desktop;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.io.File;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.UIManager;

			arguments.put(key, value);
		}
		return arguments;
	}

	/**
	 * Set the working directory, used when Sleeksnap is self-contained (Uses a
	 * directory which you can have on a flash drive)
	 * 
	 * @param workingDirectory
	 *            The directory
	 */
	public static void setWorkingDirectory(File workingDirectory) {
		workDir = workingDirectory;
	}

	/**
	 * Trim the string's start/finish of the specified character
	 * 
	 * @param str
	 *            The string
	 * @param ch
	 *            The character
	 * @return The trimmed string
	 */
	public static String trim(String str, final char ch) {
		if ((str == null) || str.isEmpty())
			return str;
		else if (str.length() == 1)
			return str.charAt(0) == ch ? "" : str;
		try {