class CheckmarxProjectSupport {

    CheckmarxSessionData extractFirstProjectFromJsonWithProjectArray(JSONAdapterSupport support, String json) throws AdapterException {
        CheckmarxSessionData data = new CheckmarxSessionData();
        Access rootNode = support.fetchRootNode(json);
        Access first = support.fetchArray(0, rootNode.asArray());
        data.setProjectId(first.fetch("id").asLong());
        data.setProjectName(first.fetch("name").asText());
        return data;
    }

}