code: public static String createFaceHtml(String text, String imageClass, HorizontalAlignmentConstant align) {
  
          StringBuffer sb = new StringBuffer();
          if (align == HasHorizontalAlignment.ALIGN_LEFT) {
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(text)) {
                  sb.append(text.trim());
              }
          }
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(imageClass)) {
              String clazz = imageClass;
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(text)) {
                  if (align == HasHorizontalAlignment.ALIGN_LEFT) {
                      clazz += " " + I_CmsLayoutBundle.INSTANCE.buttonCss().spacerLeft();
                  } else {
                      clazz += " " + I_CmsLayoutBundle.INSTANCE.buttonCss().spacerRight();
                  }
              }
              AttributeValue attr = new AttributeValue(Attribute.clazz, clazz);
              sb.append(enclose(Tag.span, "", attr));
          }
          if (align == HasHorizontalAlignment.ALIGN_RIGHT) {
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(text)) {
                  sb.append(text.trim());
              }
          }
          return sb.toString();
      }
docs: Convenience method to assemble the HTML to use for a button face.<p>
  
  @param text text the up face text to set, set to <code>null</code> to not show any
  @param imageClass the up face image class to use, set to <code>null</code> to not show any
  @param align the alignment of the text in reference to the image
  
  @return the HTML