entityMatrix.setRepository(getRepository() + "");
entityMatrix.setClassServicesName(this.getClass().getName());
entityMatrix.setLog(out.getLog().toString());
dao.insert(entityMatrix);
for (Iterator<EntityMatrixNode> it = matrixNodes.iterator(); it.hasNext();) {
EntityMatrixNode node = it.next();
node.setMatrix(entityMatrix);
dao.insert(node);
entityMatrix.getNodes().add(node);
it.remove();
dao.getEntityManager().getEntityManagerFactory().getCache().evict(node.getClass());
}
entityMatrix.setStoped(new Date());
entityMatrix.setComplete(true);
out.printLog("Concluida geração da rede: " + beginDate + " => " + endDate);
entityMatrix.setLog(out.getLog().toString());