private boolean checkIfAllKeysAvailable(UserGroup userGroup){
  boolean isAllKeysFound=true;
  StringSet objectAttributeKeySet=getAttributeKeySet();
  StringSet comparingAttributeKeySet=userGroup.getAttributeKeySet();
  for (  String objectKey : objectAttributeKeySet) {
    boolean keyFound=false;
    for (    String comparingKey : comparingAttributeKeySet) {
      if (comparingKey.equalsIgnoreCase(objectKey)) {
        keyFound=true;
        break;
      }
    }
    if (!keyFound) {
      isAllKeysFound=false;
      break;
    }
  }
  return isAllKeysFound;
}

private boolean checkIfAllKeysAvailable ( UserGroup userGroup ) { boolean isAllKeysFound = true ; StringSet objectAttributeKeySet = getAttributeKeySet ( ) ; StringSet comparingAttributeKeySet = userGroup . getAttributeKeySet ( ) ; for ( String objectKey : objectAttributeKeySet ) { boolean keyFound = false ; for ( String comparingKey : comparingAttributeKeySet ) { if ( comparingKey . equalsIgnoreCase ( objectKey ) ) { keyFound = true ; break ; } } if ( ! keyFound ) { isAllKeysFound = false ; break ; } } return isAllKeysFound ; }
checks if the keys of object ' s all the _attributes is available in the usergroup ' s attributes or not .
