JavaExpression compareDCNames =
new MethodInvocation.Instance(thisGetDCName, "equals", otherGetDCName, JavaTypeName.OBJECT, JavaTypeName.BOOLEAN, MethodInvocation.InvocationType.VIRTUAL);
compareDCNames = new OperatorExpression.Unary(JavaOperator.LOGICAL_NEGATE, compareDCNames);
ifThen = new IfThenElseStatement(compareDCNames, new ReturnStatement(LiteralWrapper.FALSE));
equals.addStatement(ifThen);
if (fieldNames != null && fieldNames.size() > 0) {
// Now we need to compare equality for the various fields.
Iterator<FieldName> fields = fieldNames.iterator();
FieldName fn = fields.next ();