if (!(service instanceof ExtendedRepositoryService)) {
throw new CmisRuntimeException(
"Internal error: Repository Service does not implement ExtendedRepositoryService!");
}
ExtendedRepositoryService extRepSrv = (ExtendedRepositoryService) service;
TypeDefinition typeDefinition = extRepSrv.getTypeDefinition(getRepositoryId(), typeId, null, useCache);
return convertTypeDefinition(typeDefinition);
}