public char[] getTextCharacters() { if (charArray != null) { return charArray; } else if (value != null) { return value.toCharArray(); } else { try { return Base64Utils.encodeToCharArray((DataHandler) getDataHandler()); } catch (IOException ex) { throw new OMException(ex); } } }