Constants.getSDB().createDomain(new
CreateDomainRequest(Constants.DOMAINSDB));
List<ReplaceableItem> erros=new ArrayList<ReplaceableItem>(null);
erros.add(new ReplaceableItem("LOG:").withAttributes(
new ReplaceableAttribute("ID", getLastOccurrence()+"", true),
new ReplaceableAttribute("LEVEL", level.getName(), true),
new ReplaceableAttribute("MESSAGE", message, true),
new ReplaceableAttribute("DATE", Calendar.getInstance().
getTime().toString(), true)
));
Constants.getSDB().batchPutAttributes(new
BatchPutAttributesRequest(Constants.DOMAINSDB, erros));