private static final String decodeFieldName(final String pXmlFieldName){
  StringBuffer str=new StringBuffer();
  int fieldNameLength=pXmlFieldName.length();
  char currentChar;
  for (int i=0; i < fieldNameLength; i++) {
    currentChar=pXmlFieldName.charAt(i);
    if (currentChar == '-') {
      str.append(Character.toUpperCase(pXmlFieldName.charAt(++i)));
    }
 else {
      str.append(currentChar);
    }
  }
  return str.toString();
}

private static final String decodeFieldName ( final String pXmlFieldName ) { StringBuffer str = new StringBuffer ( ) ; int fieldNameLength = pXmlFieldName . length ( ) ; char currentChar ; for ( int i = 0 ; i < fieldNameLength ; i ++ ) { currentChar = pXmlFieldName . charAt ( i ) ; if ( currentChar == '-' ) { str . append ( Character . toUpperCase ( pXmlFieldName . charAt ( ++ i ) ) ) ; } else { str . append ( currentChar ) ; } } return str . toString ( ) ; }
decodes a field name from xml notation ( e . g . my - field - name ) to a valid java field name ( e . g . myfieldname )
