Constraint constraint = null;
if (RasterConstraint.class.getSimpleName().equals(element.getName())) {
BitSet bs = getResult(obj, BitSet.class, element);
int length = Integer.parseInt(element.attributeValue("length"));
constraint = new RasterConstraint(new WeekRasterImpl(
new BitRasterImpl(bs, length)));
} else if (EventOrderConstraint.class.getSimpleName().equals(element.getName())) {
UnsupportedOperationException excFirstEl = new UnsupportedOperationException(
"First element in eventOrderConstraint must be the event!" + element.getPath());