public static void restart( String path, HttpServletResponse resp ) throws IOException, ServletException { Pair<DeegreeWorkspace, String> p = getWorkspaceAndPath( path ); resp.setContentType( "text/plain" ); try { if ( p.second != null ) { Workspace ws = p.first.getNewWorkspace(); List<ResourceIdentifier<?>> ids = WorkspaceUtils.getPossibleIdentifiers( ws, p.second ); for ( ResourceIdentifier<?> id : ids ) { WorkspaceUtils.reinitializeChain( ws, id ); } return; } OGCFrontController fc = OGCFrontController.getInstance(); fc.setActiveWorkspaceName( p.first.getName() ); fc.reload(); } catch ( Exception e ) { IOUtils.write( "Error while reloading: " + e.getLocalizedMessage() + "\n", resp.getOutputStream() ); return; } IOUtils.write( "Restart complete.", resp.getOutputStream() ); }