if (resourceUnavailableTimes == null)
if (resourceUnavailableTimes == null) {
  public TimeBlock[] resourceUnavailableTimes (Resource resource) {    TimeBlock[] blocks = new TimeBlock[0];    if (resourceUnavailableTimes == null)      return blocks;    data.put ("resource", resource);    Object obj = resourceUnavailableTimes.getResult (data);    data.remove ("resource");    reuse.resetObjects();    if (obj == null)      return blocks;    ArrayList list = (ArrayList) obj;    for (int i = 0; i < list.size(); i++) {      SchObject interval = (SchObject) list.get(i);      int start = ((Reusable.RInteger) interval.getField ("start")).intValue();      int end = ((Reusable.RInteger) interval.getField ("end")).intValue();      String color = getColor (interval);      String text = activityText (interval);      int insert = findInsertPosition (blocks, start);      int overlap = findNumOverlapping (blocks, end, insert);      blocks = combine2 (start, end, blocks, insert, overlap, color, text);    }    return blocks;  }