final Object bean, final Class clazz) throws CoreException {
long revision;
if (timestamp == null) {
revision = Modification.MaxRevision;
} else {
final Modification hist = element.getHistory(timestamp);
if (hist == null) {
throw new CoreException("No History with Timestamp "
+ timestamp.toString() + " found");
}
revision = hist.getRevision();
}
// ToDo: check conversion
// logger.debug("creating Element ({}){} id {} element id {} assigned",
// element.getElementType().getName(),
// clazz.getCanonicalName(), getId(bean).toString(),