* @throws Exception
*/
public static CompositeData createCompositeDataSupport(Message msg) throws Exception {
String[] props = null;
Properties properties = msg.getHeaderMessage().properties;
if (properties != null) {
props = new String[properties.size()];
int i = 0;
StringBuffer strbuf = new StringBuffer();
for (Enumeration e = properties.keys(); e.hasMoreElements();) {
String key = (String) e.nextElement();
strbuf.append(key).append('=').append(properties.get(key));
props[i++] = strbuf.toString();
strbuf.setLength(0);
}
}