code: private boolean activityIsMilestone(Activity activity)
     {
        String type = activity.getType();
        return type != null && type.indexOf("Milestone") != -1;
     }
docs: Returns true if the activity is a milestone.
  
  @param activity Phoenix activity
  @return true if the activity is a milestone