while ( nameValuePairs.hasMoreTokens() ) {
String currentToken = nameValuePairs.nextToken().trim();
if ( currentToken.startsWith( "conditional-logic-validator=" ) ) {
String validatorName = currentToken.substring( "conditional-logic-validator=".length() );
Class<?> validatorClass = pluginManager.getClassLoader( pluginId ).loadClass( validatorName );
IAdminContentConditionalLogic validator = (IAdminContentConditionalLogic) validatorClass.newInstance();
int status = validator.validate();
if ( status == IAdminContentConditionalLogic.DISPLAY_ADMIN_CONTENT ) {
settings.add( new Setting( "admin-content-info", adminContentInfo ) );
}
if ( status == IAdminContentConditionalLogic.DISPLAY_EXCEPTION_MESSAGE && exceptionMessage != null ) {
settings.add( new Setting( "exception-message", exceptionMessage ) );