}
else
{
if ( value instanceof String )
{
val = new ServerBinaryValue( attributeType, StringTools.getBytesUtf8( (String)value ) );
}
else if ( value instanceof byte[] )
{
val = new ServerBinaryValue( attributeType, (byte[])value );
}
else
{
throw new NamingException( I18n.err( I18n.ERR_309, oid ) );
}