try {
location = ExpressionExtractor.extractCqlExpressions(eg.getLocation().toString());
Iterator<ExternalGraphicFactory> it = DynamicSymbolFactoryFinder.getExternalGraphicFactories();
while(i==null && it.hasNext()) {
try {
ExternalGraphicFactory fact = it.next();
i = fact.getIcon((Feature) null, location, eg.getFormat(), -1);
} catch(Exception e) {
LOGGER.log(Level.FINE, "Error occurred evaluating external graphic", e);
}
}
} catch (MalformedURLException e1) {