if (logger.isErrorEnabled()) { logger.error("Missing the AdministrativeSuperior value needed for the OrgActivity!");
if (logger.isDebugEnabled()) { logger.debug("Missing the AdministrativeSuperior value needed for the OrgActivity!");
  private OrgActivity makeOrgActivity(TimeSpan timeSpan,                                      String activity,                                       String geoCode,                                       String opTempo,                                      String opCon) {    OrgActivityImpl orgActivity = OplanFactory.newOrgActivity(orgId, myOplan.getUID());    uidService.registerUniqueObject(orgActivity);    orgActivity.setOwner(getAgentIdentifier());    orgActivity.setTimeSpan(timeSpan);    orgActivity.setActivityType(activity);    orgActivity.setGeoLoc((GeolocLocation) locations.get(geoCode));    orgActivity.setOpTempo(opTempo);    //At the moment - always get adCon from the org_relation table query    //  which means we can get it from the self org    if (adSuperior == null) {      if (logger.isErrorEnabled()) {        logger.error("Missing the AdministrativeSuperior value needed for the OrgActivity!");      }    }    orgActivity.setAdCon(adSuperior);    //If no opCon value was read from the database,    // set opCon to be same as adCon    // This should mean that this is either the Initial Stage    // or this agent is a UA agent - either way opCon will    // be the same as adCon for the moement.    if (opCon == null) {      orgActivity.setOpCon(adSuperior);      if (logger.isDebugEnabled()) {        logger.debug("Setting opCon value to adCon value because opCon from DB is null");      }    }    else {      orgActivity.setOpCon(opCon);    }    return orgActivity;   }