86878889909192939495
if (username != null) { user = getEntityByUsername(); } else { user = getEntity(); } return new UserConverter(user, uriInfo.getAbsolutePath(), Api.DEFAULT_EXPAND_LEVEL); } finally { PersistenceService.getInstance().close(); } }