final Signature rsig = request.getSignature();
if(rsig != Signature.COMPILE) {
throw new IllegalStateException("Illegal command is passed to DistributedCompileProcessor: "
+ rsig);
}
final CompileRequest compileRequest = (CompileRequest) request;
final XQExpression rawExpr = compileRequest.getExpression();
final StaticContext statEnv = new StaticContext();
final XQExpression compiledExpr;
try {
compiledExpr = rawExpr.staticAnalysis(statEnv);