public LocalSession getLocalSession(long sessionId) {
        return localSessionCache.get(sessionId);
    }
@Test
    public void require_that_searchdefinitions_are_written_to_schemas_dir() throws Exception {
        setup();

        long sessionId = deploy(applicationId, new File("src/test/apps/deprecated-features-app"));
        LocalSession session = sessionRepository.getLocalSession(sessionId);

        assertEquals(1, session.applicationPackage.get().getSchemas().size());

        ApplicationFile schema = getSchema(session, "schemas");
        assertTrue(schema.exists());
        ApplicationFile sd = getSchema(session, "searchdefinitions");
        assertFalse(sd.exists());
    }