if(request instanceof PersistRequest) {
return resolve(((PersistRequest) request).getModel().getEntityType());
}
if(request instanceof PurgeRequest) {
final PurgeRequest pr = (PurgeRequest) request;
if(pr.getEntityRef() != null) {
return resolve(pr.getEntityRef().getEntityType());
}
return resolve(pr.getModel().getEntityType());
}
// listing request?
if(request instanceof ListingRequest) {
try {