Hi,
i'm trying to call one of the apache stanbol RESTful web services,i used apache-stanbol-client library, i wrote following code but i received an error i don't know how can i store contentFile and contentStream to the contentHub, please help me ...

this is my code:
Java Code:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stanbolclient;

import java.io.File;
import java.io.InputStream;
import org.apache.stanbol.client.StanbolClient;
import org.apache.stanbol.client.contenthub.store.model.ContentHubDocumentRequest;
import org.apache.stanbol.client.contenthub.store.model.ContentItem;
import org.apache.stanbol.client.contenthub.store.services.StanbolContenthubStoreService;
import org.apache.stanbol.client.enhancer.model.EnhancementResult;
import org.apache.stanbol.client.impl.StanbolClientImpl;

/**
 *
 * @author petal
 */
public class Client {
   private static String STANBOL_ENDPOINT = "http://dev.iks-project.eu:8081/";
    private static String TEST_URI = "workspace://SpacesStore/d8185c88-44bb-49d4-85a7-2ae2c1028a2c";
    private static String TEST_EN_FILE = "D:\\test.txt";

    public void contentHub() throws Exception{
        
        final StanbolClient client = new StanbolClientImpl(STANBOL_ENDPOINT);
        // contenthub request
        ContentHubDocumentRequest request = new ContentHubDocumentRequest();

        request.setURI(TEST_URI);
        request.setTitle("Test 111");

        File testFile = new File(TEST_EN_FILE);
        InputStream stream;
        stream = this.getClass().getClassLoader().getResourceAsStream(TEST_EN_FILE);
        request.setContentFile(testFile);
        request.setContentStream(stream);

        // add content
        String docUri = client.contenthub().add(StanbolContenthubStoreService.STANBOL_DEFAULT_INDEX, "default", request);
        
        // load content
        ContentItem ci = client.contenthub().get(StanbolContenthubStoreService.STANBOL_DEFAULT_INDEX, docUri, true);
        
        // checks
        assertNotNull(ci);
        assertFalse(ci.getEnhancements().isEmpty());
        assertNotNull(ci.getEnhancementResult());
        assertFalse(ci.getRawContent() == null);
        assertTrue(ci.getMetadata().isEmpty());
        assertNotNull((ContentItem) ci.getEnhancementGraph());
        
        System.out.println("Enhancements: "+ci.getEnhancements());
        System.out.println("EnhancementResult: "+ci.getEnhancementResult());
        System.out.println("RawContent: "+ci.getRawContent());
        System.out.println("MetaData: "+ci.getMetadata());
        //System.out.println("EnhancementGraph: "+ci.getEnhancementGraph());
    } 

    private void assertNotNull(ContentItem ci) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    private void assertFalse(boolean empty) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    private void assertNotNull(EnhancementResult enhancementResult) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    private void assertTrue(boolean empty) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
and the error is:

Exception in thread "main" org.apache.stanbol.client.services.exception.Stanb olServiceException: No ContentFile and ContentStream detected to store in ContentHub
at org.apache.stanbol.client.contenthub.store.service s.impl.StanbolContenthubStoreServiceImpl.add(Stanb olContenthubStoreServiceImpl.java:155)
at stanbolclient.Client.contentHub(Client.java:41)
at stanbolclient.Stanbol_Client.main(Stanbol_Client.j ava:33)
Java Result: 1