question: protected static boolean isObjectClassPresent ( Set objectClasses , String objectClass ) { if ( objectClasses != null && ! objectClasses . isEmpty ( ) ) { Iterator itr = objectClasses . iterator ( ) ; while ( itr . hasNext ( ) ) { String serviceOC = ( String ) itr . next ( ) ; if ( serviceOC . equalsIgnoreCase ( objectClass ) ) { return true ; } } } return false ; }
target:  Method to compare all the object classes in the Set with the specfied object class. Will do a case insensitive comparision.