private String processCreate(String parameter) { if (parameter != null) { Item create = newItemDao.create(new Item(parameter, parameter, null)); return "create: " + create.toString(); } return null; }
private String processGet(String parameter) { if (parameter != null) { try { Item read = newItemDao.read(Long.valueOf(parameter)); if (read != null) return "get: " + read.toString(); } catch (Exception e) { e.printStackTrace(); } } return null; }