* @param schema a schema
* @return a surrogate or null
* @throws T2DBException
*/
public Surrogate findChronicle(Property<?> property, Schema schema) throws T2DBException {
Surrogate result = null;
Database database = property.getSurrogate().getDatabase();
try {
find_entity_with_property = open(FIND_ENTITY_WITH_PROPERTY, property, find_entity_with_property);
find_entity_with_property.setInt(1, getId(property));
ResultSet rs = find_entity_with_property.executeQuery();
while(rs.next()) {
Surrogate entityKey = makeSurrogate(database, DBObjectType.CHRONICLE, rs.getInt(1));
Schema s = database.getChronicle(entityKey).getSchema(true);
if (s.dependsOnSchema(schema)) {
result = entityKey;
break;
}