@Override
public DeleteResponseDMO delete(DeleteRequestDMO deleteRequest) {
// All requests are immediately wrapped for use on the server. This includes
// associating the request with the originating HttpServletRequest.
DeleteRequest request = new DeleteRequest(deleteRequest, getThreadLocalRequest());
DeleteResponse response = null;
if (request.isTrackingEnabled())
logger.trace("Received by DMP servlet:\n" + request.toOIF());
try {
response = (DeleteResponse) pluginManager.getSecurityManager().validateSession(request);
if (response == null){
SessionRI session = pluginManager.getSecurityManager().getSession(request);
response = session.handleDeleteRequest(request);
}
} catch (DmcValueException e) {
response = (DeleteResponse) request.getErrorResponse();
response.setResponseText(e.toString());
logger.error(e.toString());
}
return(response.getDMO());
}