protected void initializeRestServer() throws Exception {
component = new Component();
// Add a new HTTP server listening on port 8182.
component.getServers().add(Protocol.HTTP, 8182);
component.getDefaultHost().attach(new ActivitiRestApplication());
component.start();
}