private static String capture3XXCodes(String value){
try{
String skip_protocol = value.substring(7);
String domain_only = skip_protocol.substring(0,skip_protocol.indexOf("/"));
String work_value = value;
<BUG>if (PROXY_REWRITE_NO_REDIRECT_DOMAIN.length() > 0 && !domain_only.endsWith(PROXY_REWRITE_NO_REDIRECT_DOMAIN)) {
boolean getRedirect = true;
while (getRedirect) {
AddressTester tester = new AddressTester(work_value);

int responseCode = tester.getResponseCode();
if (responseCode != 301 ||responseCode != 302){
LogService.log(LogService.DEBUG,"ProxyWriter::capture3XXCodes(): could not get deeper in getting the image.");
return work_value;</BUG>
}

private static String capture3XXCodes(String value){
try{
String skip_protocol = value.substring(7);
String domain_only = skip_protocol.substring(0,skip_protocol.indexOf("/"));
String work_value = value;
if (PROXY_REWRITE_NO_REDIRECT_DOMAIN.length() > 0 && !domain_only.endsWith(PROXY_REWRITE_NO_REDIRECT_DOMAIN)) {
while (true) {
AddressTester tester = new AddressTester(work_value, true);
try {
