String graphicElementClassName = graphicElement.substring(0, 1).toUpperCase() + graphicElement.substring(1);
Class graphicElementClass = Class.forName("org.jboss.dashboard.ui.resources." + graphicElementClassName);
Method managerGetter = graphicElementClass.getMethod("getManager", new Class[]{});
GraphicElementManager manager = (GraphicElementManager) managerGetter.invoke(null, new Object[]{});
GraphicElementPreview preview = (GraphicElementPreview) request.getSessionObject().getAttribute(PREVIEW_ATTRIBUTE);
final GraphicElement element = preview.toElement();
manager.createOrUpdate(element);
FormStatus status = SessionManager.getCurrentFormStatus();
status.clear();
String successPage = request.getParameter("successPage");
if (successPage != null) {