private boolean isRegisteredForSubOrgs(String serviceName) throws SSOException {
  Map avPair=new HashMap();
  Set value=new HashSet();
  value.add(serviceName);
  avPair.put(SERVICE_STATUS_ATTRIBUTE,value);
  Set subOrgs=null;
  try {
    subOrgs=searchSubOrganizationalUnits("*",avPair,SCOPE_SUB);
  }
 catch (  AMException ae) {
  }
  if ((subOrgs != null) && (!subOrgs.isEmpty()) && (subOrgs.size() > 1)) {
    return true;
  }
 else {
    return false;
  }
}

private boolean isRegisteredForSubOrgs ( String serviceName ) throws SSOException { Map avPair = new HashMap ( ) ; Set value = new HashSet ( ) ; value . add ( serviceName ) ; avPair . put ( SERVICE_STATUS_ATTRIBUTE , value ) ; Set subOrgs = null ; try { subOrgs = searchSubOrganizationalUnits ( "*" , avPair , SCOPE_SUB ) ; } catch ( AMException ae ) { } if ( ( subOrgs != null ) && ( ! subOrgs . isEmpty ( ) ) && ( subOrgs . size ( ) > 1 ) ) { return true ; } else { return false ; } }
method which returns a true or false after verifying that the service is registered for the immediate sub - orgs for this parent org .
