question: private boolean validateAuthSchemes ( Set authSchemeSet ) throws PolicyException { if ( authSchemeSet . isEmpty ( ) ) { String args [ ] = { AUTH_SCHEME } ; throw new PolicyException ( ResBundleUtils . rbName , "property_does_not_allow_empty_values" , args , null ) ; } Iterator authSchemeSetIter = authSchemeSet . iterator ( ) ; authSchemes . clear ( ) ; while ( authSchemeSetIter . hasNext ( ) ) { try { String authScheme = ( String ) authSchemeSetIter . next ( ) ; authSchemes . add ( authScheme ) ; } catch ( ClassCastException e ) { String args [ ] = { AUTH_SCHEME } ; throw new PolicyException ( ResBundleUtils . rbName , "property_is_not_a_String" , args , null ) ; } } return true ; }
target:  Validates the module instance names provided to the setProperties() call for the AUTH_SCHEME key. Checks for null and throws Exception if null or not a String.