@Override
public CreateResponseDMO create(CreateRequestDMO createRequest) {
// All requests are immediately wrapped for use on the server. This includes
// associating the request with the originating HttpServletRequest.
CreateRequest request = new CreateRequest(createRequest, getThreadLocalRequest());
CreateResponse response = null;
if (request.isTrackingEnabled())
logger.trace("Received by DMP servlet:\n" + request.toOIF());
try {
response = (CreateResponse) pluginManager.getSecurityManager().validateSession(request);
if (response == null){
SessionRI session = pluginManager.getSecurityManager().getSession(request);
response = session.handleCreateRequest(request);
}
} catch (DmcValueException e) {
response = (CreateResponse) request.getErrorResponse();
response.setResponseText(e.toString());
e.printStackTrace();
}