// Path: src/main/java/com/syndicapp/scraper/FSSUserAgent.java
// public class FSSUserAgent {
//     public static HttpClient httpclient = HttpClientBuilder.create().build();
//     public static Logger log = Logger.getLogger(FSSUserAgent.class);
//     public static BasicHttpContext context = new BasicHttpContext();
// 
//     public FSSUserAgent() {
//     }
// 
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/exception/UnexpectedPageContentsException.java
// public class UnexpectedPageContentsException extends Exception
// {
// 
//     public UnexpectedPageContentsException(String s)
//     {
//         super(s);
//     }
// 
//     private static final long serialVersionUID = 0xf57ed4fa93f8378aL;
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import com.syndicapp.scraper.FSSUserAgent;
import com.syndicapp.scraper.exception.UnexpectedPageContentsException;

		HttpPost httppost = new HttpPost(
				"https://aibinternetbanking.aib.ie/inet/roi/fundstransferownaccounts.htm");
		List<BasicNameValuePair> nvps = new ArrayList<BasicNameValuePair>();
		nvps.add(new BasicNameValuePair("ccAccounts", "[{" + ccAccounts + "}]"));
		nvps.add(new BasicNameValuePair("selectedFromAccountIndex", (String) inputParams
				.get("fromAccount")));
		nvps.add(new BasicNameValuePair("senderReference", (String) inputParams
				.get("senderReference")));
		nvps.add(new BasicNameValuePair("selectedToAccountIndex", (String) inputParams
				.get("toAccount")));
		nvps.add(new BasicNameValuePair("receiverReference", (String) inputParams
				.get("receiverReference")));
		nvps.add(new BasicNameValuePair("transferAmount.euro", (String) inputParams
				.get("amounteuro")));
		nvps.add(new BasicNameValuePair("transferAmount.cent", (String) inputParams
				.get("amountcent")));
		nvps.add(new BasicNameValuePair("_target1.x", "49"));
		nvps.add(new BasicNameValuePair("_target1.y", "8"));
		nvps.add(new BasicNameValuePair("iBankFormSubmission", "true"));
		nvps.add(new BasicNameValuePair("transactionToken", transactionToken));
		log.fatal((new StringBuilder())
				.append("Clicking 'Transfers between my own accounts' with ")
				.append(nvps.toString()).toString());
		httppost.setEntity(new UrlEncodedFormEntity(nvps, "ISO-8859-1"));
		HttpResponse response = httpclient.execute(httppost);
		HttpEntity entity = response.getEntity();
		page = EntityUtils.toString(entity);
		
		if (!page.contains("You have requested to make the following transfer:")) {
			log.fatal(page);

// Path: src/main/java/com/syndicapp/scraper/FSSUserAgent.java
// public class FSSUserAgent {
//     public static HttpClient httpclient = HttpClientBuilder.create().build();
//     public static Logger log = Logger.getLogger(FSSUserAgent.class);
//     public static BasicHttpContext context = new BasicHttpContext();
// 
//     public FSSUserAgent() {
//     }
// 
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/exception/UnexpectedPageContentsException.java
// public class UnexpectedPageContentsException extends Exception
// {
// 
//     public UnexpectedPageContentsException(String s)
//     {
//         super(s);
//     }
// 
//     private static final long serialVersionUID = 0xf57ed4fa93f8378aL;
// }


// Path: src/main/java/com/syndicapp/scraper/aib/TransferBetweenMyOwnAccountsStep1Page.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import com.syndicapp.scraper.FSSUserAgent;
import com.syndicapp.scraper.exception.UnexpectedPageContentsException;

		HttpPost httppost = new HttpPost(
				"https://aibinternetbanking.aib.ie/inet/roi/fundstransferownaccounts.htm");
		List<BasicNameValuePair> nvps = new ArrayList<BasicNameValuePair>();
		nvps.add(new BasicNameValuePair("ccAccounts", "[{" + ccAccounts + "}]"));
		nvps.add(new BasicNameValuePair("selectedFromAccountIndex", (String) inputParams
				.get("fromAccount")));
		nvps.add(new BasicNameValuePair("senderReference", (String) inputParams
				.get("senderReference")));
		nvps.add(new BasicNameValuePair("selectedToAccountIndex", (String) inputParams
				.get("toAccount")));
		nvps.add(new BasicNameValuePair("receiverReference", (String) inputParams
				.get("receiverReference")));
		nvps.add(new BasicNameValuePair("transferAmount.euro", (String) inputParams
				.get("amounteuro")));
		nvps.add(new BasicNameValuePair("transferAmount.cent", (String) inputParams
				.get("amountcent")));
		nvps.add(new BasicNameValuePair("_target1.x", "49"));
		nvps.add(new BasicNameValuePair("_target1.y", "8"));
		nvps.add(new BasicNameValuePair("iBankFormSubmission", "true"));
		nvps.add(new BasicNameValuePair("transactionToken", transactionToken));
		log.fatal((new StringBuilder())
				.append("Clicking 'Transfers between my own accounts' with ")
				.append(nvps.toString()).toString());
		httppost.setEntity(new UrlEncodedFormEntity(nvps, "ISO-8859-1"));
		HttpResponse response = httpclient.execute(httppost);
		HttpEntity entity = response.getEntity();
		page = EntityUtils.toString(entity);
		
		if (!page.contains("You have requested to make the following transfer:")) {
			log.fatal(page);

			throw new UnexpectedPageContentsException(
