//check for custom label & style
if (parameters.containsKey("submitLabel")) {
submitLabel = parameters.get("submitLabel");
}
if (parameters.containsKey("submitCode")) {
Translator trans = session.getContext().getTranslator();
submitLabel = trans.translate(Context.getLocale().toString(), parameters.get("submitCode"));
}
if (parameters.containsKey("submitClass")) {
submitClass = submitClass + " " + parameters.get("submitClass"); //append any other classes specified
}
if (parameters.containsKey("class")) {