public ExtendedResponse createExtendedResponse( String id, byte[] berValue, int offset, int length )
throws NamingException
{
org.apache.directory.shared.ldap.model.message.ExtendedResponse response = new ExtendedResponseImpl( request
.getMessageId(), request.getRequestName() );
response.setResponseName( id );
response.setResponseValue( berValue );
this.response = JndiUtils.toJndiExtendedResponse( response );
return this.response;
}