if ( attributeValue != null )
{
if ( !Oid.isOid( attributeValue ) )
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03006 ), xpp, null );
}
control = container.getLdapCodecService().newControl( new OpaqueControl( attributeValue ) );
parent.addControl( control );
}
else
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03005 ), xpp, null );
}
// CRITICALITY
attributeValue = xpp.getAttributeValue( "", "criticality" );
if ( attributeValue != null )
{
if ( attributeValue.equals( "true" ) )
{
control.setCritical( true );
}
else if ( attributeValue.equals( "false" ) )
{
control.setCritical( false );
}
else
{
throw new XmlPullParserException( I18n.err( I18n.ERR_03007 ), xpp, null );
}
}
}