protected MarginInfo parseMarginInfo(String margin) {
if (margin.length() > 4) {
String[] margins = margin.split(" ");
if (margins.length == 4) {
return new MarginInfo(Boolean.valueOf(margins[0]),
Boolean.valueOf(margins[1]),
Boolean.valueOf(margins[2]),
Boolean.valueOf(margins[3]));
}
}
return new MarginInfo(Boolean.valueOf(margin));
}