StringBuilder builder = new StringBuilder();
Query query = JPA.em().createNativeQuery(builder.toString());
query.unwrap(SQLQuery.class).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
List<Map<String, Object>> result = query.getResultList();
for (Map<String, Object> map : result) {
map.get("projectName");
map.get("contexttype");
map.get("serverName");
map.get("serverPort") == null ? "" : String.valueOf(map.get("serverPort"));
map.get("serverIP");
map.get("secret");
map.get("upstreamName");
map.get("down") == null ? 0 : Integer.parseInt(map.get("down").toString()));
}