}
// TODO figure out a better way to determine if boolean or a
// password
final ObjectSpecification spec = field.getSpecification();
final BooleanValueFacet facet = spec.getFacet(BooleanValueFacet.class);
if (facet != null) {
final boolean flag = facet.isSet(fieldReference);
final String valueSegment = flag ? " checked=\"checked\"" : "";
final String disabled = " disabled=\"disabled\"";
request.appendHtml("<input type=\"checkbox\"" + valueSegment + disabled + " />");
} else {
request.appendAsHtmlEncoded(value);