if (properties != null) {
URL server;
try {
server = new URL(getConfigProperty(properties, SERVER));
} catch (MalformedURLException e) {
throw new ConfigurationException(SERVER, getConfigProperty(properties, SERVER) + " is not a valid URL.", e);
}
String amiId = getConfigProperty(properties, AMI_ID);
String amiOwnerId = getConfigProperty(properties, AMI_OWNER_ID, "");
String location = getConfigProperty(properties, LOCATION);
String hardwareId = getConfigProperty(properties, HARDWARE_ID, InstanceType.C1_MEDIUM);