final ObjectAdapter object = MethodsUtils.findObject(request.getContext(), objectId);
if (objectId == null) {
objectId = request.getContext().mapObject(object, null);
}
final InclusionList inclusionList = new InclusionList();
request.setBlockContent(inclusionList);
request.processUtilCloseTag();
request.appendHtml("<div class=\"actions\">");
if (inclusionList.includes("edit") && !object.getSpecification().isService()) {
request.appendHtml("<div class=\"action\">");
request.appendHtml("<a class=\"button\" href=\"_generic_edit." + Dispatcher.EXTENSION + "?_result=" + objectId + "\">Edit...</a>");
request.appendHtml("</div>");
}
writeMethods(request, objectId, object, showForms, inclusionList, view, "_generic.shtml?_result=" + objectId);