Unable to set managedBy attribute in dynamic DLs

In Dynamic Distribution Lists, we are trying to set the managedBy attribute with the Distinguished Name of ‘s-iiq’ (an iiq service account) through the java code however the atttribute shows blank in IIQ.
But the same thing works if we create a Rule in Beanshell with the same functionality. Please have a look.