if ( ( ref != null ) && ! hasManageDsaItControl )
{
// The entry is a referral.
InternalSearchResponseReference respRef;
respRef = new SearchResponseReferenceImpl( req.getMessageId() );
respRef.setReferral( new ReferralImpl() );
for ( Value<?> val : ref )
{
String url = val.getString();