*/
private String processAsDsmlRequest( StudioNamingEnumeration ne, StudioProgressMonitor monitor )
throws NamingException
{
// Creating the batch request
BatchRequestDsml batchRequest = new BatchRequestDsml();
if ( !monitor.errorsReported() )
{
// Creating and adding an add request for each result
while ( ne.hasMore() )
{
SearchResult searchResult = ( SearchResult ) ne.next();
AddRequestDsml arDsml = convertToAddRequestDsml( searchResult );
batchRequest.addRequest( arDsml );
}
}
// Returning the associated DSML
return batchRequest.toDsml();
}