138139140141142143144145146147148
addProfiles(ref, projectKey, profileName, session); addActiveRules(ref); response.stream().setMediaType(MimeTypes.JSON); IOUtils.write(ref.toJson(), response.stream().output()); } finally { MyBatis.closeQuietly(session); } }