if (!ERXUtilities.booleanValue(d2wContext().valueForKey("isMandatory"))) {
if (!ERXValueUtilities.booleanValue(d2wContext().valueForKey("isMandatory"))) {
    public boolean displayRequiredMarker() {        boolean displayRequiredMarker = false;        // avoiding attribute() and relationship() because of lame-ass caching scheme on D2WContext        String task = (String)d2wContext().valueForKey("task");        if (task==null || task.equals("edit")) {            if (!ERXUtilities.booleanValue(d2wContext().valueForKey("isMandatory"))) {                EOAttribute a=(EOAttribute)d2wContext().valueForKey("smartAttribute");                if (a!=null)                    displayRequiredMarker = !a.allowsNull();                else {                    EORelationship r=(EORelationship)d2wContext().valueForKey("smartRelationship");                    if (r!=null) displayRequiredMarker = r.isMandatory();                }                            } else                displayRequiredMarker = true;        }        return displayRequiredMarker;    }