{
// TODO: Missing properties error handle.
return null;
}
REST rest = null;
try
{
rest = new REST();
}
catch (ParserConfigurationException e)
{
e.printStackTrace();
return null;
}
Properties systemSettings = System.getProperties();
//
// Look for a proxy setting
//
String proxyHost = Program.getProperty("general.proxyHost");
String proxyPortString = "";
if( proxyHost != null && proxyHost != "" )
{
proxyPortString = Program.getProperty("general.proxyPort");
}
else
{
proxyHost = (String) systemSettings.get("http.proxyHost" );
proxyPortString = (String) systemSettings.get("http.proxyPort");
}
if( proxyHost != null && proxyHost != "" )
{
int proxyPort;
try
{
proxyPort = Integer.parseInt(proxyPortString);
}
catch (NumberFormatException e1)
{
proxyPort = 8080; // Try a default.
}
rest.setProxy(proxyHost, proxyPort);
}
String sPhotoCount = Program.getProperty( "flickr.photoCount" );
int photoCount = 25;
try