public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
if (zone != null) {
if (isValid(attributes)) {
try {
final Allotment all = new Allotment();
all.setPosition(Integer.parseInt(attributes.get("x")), Integer.parseInt(attributes.get("y")));
all.setSize(Integer.parseInt(attributes.get("width")), Integer.parseInt(attributes.get("height")));
all.hide();
zone.add(all);
} catch (final NumberFormatException e) {
Logger.getLogger(FertileGrounds.class).error(
"cannot create allotment in " + zone.getName() + ": " + e);
}