return redirectTo("/page-not-found");
}
private Object findEntityOfDomain(String entityId, String domainTypeName) {
DomainTypeAdministrationConfiguration domainTypeConfiguration = configuration.forEntityName(domainTypeName);
DynamicJpaRepository repository = domainTypeConfiguration.getRepository();
PersistentEntity persistentEntity = domainTypeConfiguration.getPersistentEntity();
Serializable id = (Serializable) conversionService.convert(entityId, persistentEntity.getIdProperty().getActualType());
return repository.findOne(id);
}