return (Folder) rootFolder;
}
public ItemIterable<ObjectType> getTypeChildren(final String typeId, final boolean includePropertyDefinitions) {
final RepositoryService repositoryService = getBinding().getRepositoryService();
final ObjectFactory objectFactory = this.getObjectFactory();
return new CollectionIterable<ObjectType>(new AbstractPageFetch<ObjectType>(this.getDefaultContext()
.getMaxItemsPerPage()) {
@Override
protected AbstractPageFetch.PageFetchResult<ObjectType> fetchPage(long skipCount) {
// fetch the data
TypeDefinitionList tdl = repositoryService.getTypeChildren(
PersistentSessionImpl.this.getRepositoryId(), typeId, includePropertyDefinitions, BigInteger
.valueOf(this.maxNumItems), BigInteger.valueOf(skipCount), null);
// convert type definitions
List<ObjectType> page = new ArrayList<ObjectType>(tdl.getList().size());