if (log.isDebugEnabled()) {
if (log.isInfoEnabled()) {
  private final void publishAllocation(      final Task task,      final int matchingRuleIndex,      final long deadlineTime,      final long taskDeadlineTime) {    // set the new deadline for the resulting task, if this is an     //   allocation to a remote Org.  (for local allocations, this     //   is meaningless)    AllocationResult estAR = null;    // !!! FIXME!!!    // How do I know which aspects to use?    // Are these the right values to guess?    int []aspect_types = {AspectType.END_TIME};    double []results = {(double)(taskDeadlineTime)};    // For now, leave the estimate blank so the customer    // can deal with it.    // Later should set it and have customer handle low-confidence results    //estAR = theLDMF.newAllocationResult(0.0, true, aspect_types, results);        // FIXME: Is that the correct Role to use?    Allocation alloc =      theLDMF.createAllocation(task.getPlan(), task, 		     expandedRules[matchingRuleIndex].getAsset(), estAR, Role.ASSIGNED);        // Annotate this allocation with myPlugInID and the rule index    alloc.setAnnotation(new MyAnnot(super.toString(), matchingRuleIndex));    // FIXME!!! At some point, must set the taskDeadlineTime here!    // perhaps by putting it in the Annotation    // Then must also modify code elsewhere in this class to reset the END_TIME aspect on    // the Task to the taskDeadlineTime, and try to meet that deadline, right?    // setTaskDeadline(alloc, taskDeadlineTime);        publishAddAfter(alloc, this.allocPubDelay);    // also generate the deadline-exceeded event    NewDeadlineTimerEvent deadlineE =      theCSMARTF.newDeadlineTimerEvent();    deadlineE.setRegarding(alloc);    deadlineE.setTime(deadlineTime);    deadlineE.setPublisher(super.toString());    deadlineE.setSource(getAgentIdentifier());    publishAddAt(deadlineE, deadlineTime);    // done handling task    if (log.isDebugEnabled()) {      log.info(          " allocated task: "+task.getUID()+           "\nto asset: "+alloc.getAsset().getUID()+	   "\nusing new Allocation " + alloc.getUID()+           "\nvia rule["+matchingRuleIndex+"]: "+           expandedRules[matchingRuleIndex]);    }  } // end of publishAllocation