@Override
    protected void initializeCPointer() {
        assert this.cPointer != 0;
        assert reportNameBase != null;
        final int r = ppaml_tracer_init(this.cPointer, reportNameBase);
        switch (r) {
        case 0:
            break;
        case -1:
            throw new java.lang.OutOfMemoryError(
                "failed to convert Java string to C string");
        case 1:
            throw new OTFManagerInitializationException();
        case 2:
            throw new OTFWriterInitializationException();
        case 3:
            throw new OTFWriterResolutionException();
        case 4:
            throw new OTFWriterProcessDefinitionException("main");
        default:
            throw new UnexpectedReturnValueError(r);
        }
    }