Object result = null;
if (value() != null && value() instanceof String && ((String)value()).length() > 0) {
result = ERXUtilities.caseInsensitiveEntityNamed(((String)value()).toLowerCase());
}
if(result == null && value() != null && value() instanceof String) {
<BUG>result = entityForName((String)c.valueForKey((String)value()));
}
if(result == null) {
String name = (String)c.valueForKey("pageConfiguration");
if (result == null && name != null) {
result = entityForName(name);
}</BUG>
}

Object result = null;
if (value() != null && value() instanceof String && ((String)value()).length() > 0) {
result = ERXUtilities.caseInsensitiveEntityNamed(((String)value()).toLowerCase());
}
if(result == null && value() != null && value() instanceof String) {
result = entityForName((String)value());
}
if(result == null) {
result = entityForKey(c, "pageConfiguration");
}
