if ( !StringUtils.equalsIgnoreCase( TYPE, element.getAttribute( "type" ) ) ) {
throw new RuntimeException( "Element is not a checkbox: " + descriptor );
}
if ( StringUtils.startsWithIgnoreCase( descriptor.getValue(), CHECKED ) ) {
element.check();
}
else {
element.uncheck();
}
}